在使用reloadData 或者是 对Section Cell 进行刷新时会出现屏幕闪烁的问题可以用下面的方法解决,
[UIView performWithoutAnimation:^{
[self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:4]];
}];
[UIView performWithoutAnimation:^{
[self.collectionView reloadData];
}];
在使用reloadData 或者是 对Section Cell 进行刷新时会出现屏幕闪烁的问题可以用下面的方法解决,
[UIView performWithoutAnimation:^{
[self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:4]];
}];
[UIView performWithoutAnimation:^{
[self.collectionView reloadData];
}];
转载于:https://www.cnblogs.com/Rong-Shengcom/p/7988153.html