自定义UITableViewCell

时间:2016-11-28 08:38:07
【文件属性】:
文件名称:自定义UITableViewCell
文件大小:399KB
文件格式:ZIP
更新时间:2016-11-28 08:38:07
iOS cell tableview OOC Cocoa 有时候我们需要自己定义UITableViewCell的风格,其实就是向行中添加子视图。添加子视图的方法主要有两种:使用代码以及从.xib文件加载。当然后一种方法比较直观。 该示例是自定义一个Cell,使得它像QQ好友列表的一行一样:左边是一张图片,图片的右边是三行标签。项目中包含了用到的20张头像,代码注释详尽,结构清晰。
【文件预览】:
CustomCell
----CustomCell.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(29KB)
----CustomCell()
--------ViewController.m(4KB)
--------.DS_Store(6KB)
--------icon.png(6KB)
--------en.lproj()
--------main.m(335B)
--------CustomCell.xib(5KB)
--------Friends.plist(4KB)
--------CustomCell.h(1KB)
--------CustomCell-Info.plist(1KB)
--------Base.lproj()
--------Images.xcassets()
--------CustomCell.m(2KB)
--------ViewController.h(987B)
--------AppDelegate.h(275B)
--------CustomCell-Prefix.pch(344B)
--------200×200()
--------AppDelegate.m(2KB)
----CustomCellTests()
--------en.lproj()
--------CustomCellTests-Info.plist(687B)
--------CustomCellTests.m(643B)

网友评论