UICollectionView刷新Section引發的數據和其他問題

UICollectionView刷新某個Section時
[self.collectionView performBatchUpdates:^{
           [self.collectionView reloadSections:[NSIndexSetindexSetWithIndex:0]];
       } completion:nil];
如果不使用[self.collectionView performBatchUpdates:^{
           
       } completion:nil];會刷新其他地方,可能因爲數據問題導致出錯。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章