解决CollectionView TableView reloadData或者reloadSections时的刷新的闪烁问题

在使用reloadData 或者是 对Section Cell 进行刷新时会出现屏幕闪烁的问题可以用下面的方法解决,

 

[UIView performWithoutAnimation:^{ 
[self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:4]]; 
}];

[UIView performWithoutAnimation:^{ 
[self.collectionView reloadData]; 
}];

 

posted @ 2017-12-05 16:59  #零下一度&  阅读(5587)  评论(0编辑  收藏  举报