UICollectionView reloadData not functioning properly in iOS 7

后端 未结 17 1428
北荒
北荒 2020-11-27 11:18

I\'ve been updating my apps to run on iOS 7 which is going smoothly for the most part. I have noticed in more than one app that the reloadData method of a

17条回答
  •  日久生厌
    2020-11-27 11:42

    You can use this method

    [collectionView reloadItemsAtIndexPaths:arayOfAllIndexPaths];
    

    You can add all indexPath objects of your UICollectionView into array arrayOfAllIndexPaths by iterating the loop for all sections and rows with use of below method

    [aray addObject:[NSIndexPath indexPathForItem:j inSection:i]];
    

    I hope you understood and it can resolve your problem. If you need any more explanation please reply.

提交回复
热议问题