刷新UICollectionView:
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
reloadItemsAtIndexPath默认会有一个动画的过程,cell内容更新的瞬间会出现原内容与新内容重叠的情况。那么使用如下方式取消该动画即可:
[UIView performWithoutAnimation:^{
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
}];
UIcollectionview 显示超过屏幕时,上下滚动之后,数据出现重复和错乱现象--解决办法:

网友评论