• 归档(1)


    //

    //  TableViewCell.m

    //  TableView

    //

    //  Created by Bruce on 15/8/25.

    //  Copyright (c) 2015年 Bruce. All rights reserved.

    //

    #import "TableViewCell.h"

    #import "Canvas.h"

    @implementation TableViewCell

    - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier

    {

        self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];

        if (self) {

            CSAnimationView *animationView = [[CSAnimationView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];

            

            animationView.backgroundColor = [UIColor whiteColor];

            

            animationView.duration = 0.5;

            animationView.delay    = 0;

            animationView.type     = CSAnimationTypeShake;

            

            [self.contentView addSubview:animationView];

            

            

            UIView *view =  [[UIView alloc]initWithFrame:CGRectMake(10, 0, 40, 40)];

            view.backgroundColor = [UIColor brownColor];

            [animationView addSubview:view];

            [animationView startCanvasAnimation];

        }

        return self;

    }

    - (void)awakeFromNib {

        // Initialization code

    }

    - (void)setSelected:(BOOL)selected animated:(BOOL)animated {

        [super setSelected:selected animated:animated];

        // Configure the view for the selected state

    }

    @end

  • 相关阅读:
    【MySQL】JSON相关
    【Scala】01 基础了解
    【Windows】更改Win10字体和Cmd字体
    【DataBase】MySQL根据父节点查询下面的所有子节点
    【Windows】Win10 20H2版本 管理员身份问题
    【Java】树状节点结构的数据
    【Vue】接口模块化处理
    【Server
    【Binary】XShell6 无法使用的解决办法
    【Java】逻辑错误BUG
  • 原文地址:https://www.cnblogs.com/wukun16/p/4883947.html
Copyright © 2020-2023  润新知