我想用一些有趣的动画重新加载 UICollectionView。在 UITableView 中有一个名为 reloadSections:withRowAnimation
的方法。
但是在 UICollectionView 中只有 reloadSections
。
如何自定义 reloadSections 动画?我肯定在 App Store 的应用程序中看到了这一点。
最佳答案
就这样吧:
[self.collectionView performBatchUpdates:^{
[self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]];
} completion:nil];
关于objective-c - 带有动画的 UICollectionView reloadSections,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19273447/