book
OC动画
1.
OC语法细节
1.1.
const
2.
OC-Exceptions
3.
UIScrollView
4.
NSTimer
5.
Autolayout
5.1.
适配
5.2.
Autoresizing简介
5.3.
Autolayout
5.3.1.
storyboard
5.3.2.
代码创建(官方)
5.3.3.
VFL
5.3.4.
Masonry
6.
UITableView
6.1.
UITableViewDatasource
6.2.
UITableViewDelegate
6.3.
Cell性能优化
6.3.1.
Cell的循环利用方式1
6.3.2.
Cell的循环利用方式2
6.3.3.
Cell的循环利用方式3
6.3.4.
自定义等高cell
6.3.5.
UITableViewCell的常见设置
6.4.
自定义非等高CellHeight
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
book
Cell性能优化
苹果在cell的性能方面首先做了一个简单的优化,类似于懒加载。只有当显示的时候,那个cell才会被创建出来。
但是,先前创建的cell会被扔进缓存池里面,而当我们往回滚动tableview的时候,却不会主动的去缓存池里面找,而是再次创建一个cell。
所以,我们需要自己去进一步做优化。