Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chlin7/chlCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chlCollection

1.跟随教学视频整理的一个项目结构; 2.让自己的项目目录更加合理化;。

当前兼容iOS6,现在可考虑不再兼容

代码自定义一个cell的步骤 1.新建一个集成了UITableViewCell的类

2.重写initWithStyle:reuseIdentifier: 方法 (添加所有的字控件-不需要设置数据和frame,字控件要添加到contentView) 进行子控件一次性的属性设置

3.提供2个模型 数据模型:存放文字数据等 frame模型:数据、所有子控件、frame、cell高度等

4.cell拥有frame(不直接拥有数据)

5.重写frame模型的setter方法:在这方法设置子控件的显示数据和frame

6.重点了解如何动态创建UITableViewCell

About

项目代码收集

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published