zoukankan      html  css  js  c++  java
  • 自定义cell

    //

    //  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

  • 相关阅读:
    ti processor sdk linux am335x evm setup.sh hacking
    ti processor sdk linux am335x evm Makefile hacking
    导出Excel数据
    使用dom4j解析XML例子
    java解析xml文件并输出
    java解析xml文件
    java解析XML获取城市代码
    drop.delete.trauncat的区别
    hibernate 中id生成策略
    如何使java中double类型不以科学计数法表示
  • 原文地址:https://www.cnblogs.com/wukun16/p/4883938.html
Copyright © 2011-2022 走看看