search

Home  >  Q&A  >  body text

ios - tableView的优化,名词好多,麻烦解释下。

tableView的优化:
1.正确的复用cell。
2.减少在返回每个cell里面的处理逻辑和处理时间。尽量将数据进行缓存和复用。
3.减少处理加载和计算的时间,不阻塞UI线程。
4.尽量使用绘制每个cell。
5.设置每个cell的opaque属性
6.尽量返回每行固定的height
7.在每个cell减少图像效果
8.分段加载数据

我大概明白复用cell dequeue ,分段分页加载数据。初学开发也没涉及太深,麻烦各位解析下。

高洛峰高洛峰2887 days ago322

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:54:33

    http://blog.ibireme.com/2015/11/12/smoot...
    ibireme mentioned a lot of tips on interface smoothness in this blog, which are related to the questions you asked, read it yourself

    reply
    0
  • Cancelreply