在demo的微博列表里,reload tableView tableView 会发生闪屏的现象。这是为什么?
Activity
ibireme commentedon Dec 30, 2015
TableView 内的所有文本控件,都是异步绘制的,我猜可能与这个有关。
BestKai commentedon Dec 30, 2015
有没有优化的方案?
ibireme commentedon Dec 30, 2015
既然是 "异步绘制",这个问题基本上是避免不的。。
几个方案:
label. clearContentsBeforeAsynchronouslyDisplay = NO;
这样做会没有闪动,但是内容更新可能稍有滞后。这个可以实际测试一下看看效果。yangchao0033 commentedon Jan 6, 2016
原来截图覆盖是在这用的!
[-]tableview reload 发生闪屏[/-][+]Table reload 发生闪屏[/+][-]Table reload 发生闪屏[/-][+]TableView reload 时,YYLabel 有闪动[/+]4 remaining items