刷新UICollectionView:
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
reloadItemsAtIndexPath默認(rèn)會(huì)有一個(gè)動(dòng)畫的過程国夜,cell內(nèi)容更新的瞬間會(huì)出現(xiàn)原內(nèi)容與新內(nèi)容重疊的情況谦铃。那么使用如下方式取消該動(dòng)畫即可:
[UIView performWithoutAnimation:^{
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
}];
UIcollectionview 顯示超過屏幕時(shí),上下滾動(dòng)之后束世,數(shù)據(jù)出現(xiàn)重復(fù)和錯(cuò)亂現(xiàn)象--解決辦法:
![image.png](http://upload-images.jianshu.io/upload_images/3739252-7e7c89b77c2ee4aa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)