UICollectionView 的reloadItemsAtIndexPath默认会有一个动画的过程, 那么使用如下方式可取消该动画:
[UIView performWithoutAnimation:^{
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
}];
UICollectionView在reloadItemsAtIndexPaths时默认会有动画效果。本文介绍如何通过UIView performWithoutAnimation方法来取消这一动画过程。
UICollectionView 的reloadItemsAtIndexPath默认会有一个动画的过程, 那么使用如下方式可取消该动画:
[UIView performWithoutAnimation:^{
[self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
}];

被折叠的 条评论
为什么被折叠?