UICollectionView reloadData not functioning properly in iOS 7

后端 未结 17 1406
北荒
北荒 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 12:06

    In my case, the number of cells/sections in the datasource never changed and I just wanted to reload the visible content on the screen..

    I managed to get around this by calling:

    [self.collectionView reloadItemsAtIndexPaths:[self.collectionView indexPathsForVisibleItems]];
    

    then:

    [self.collectionView reloadData];
    

提交回复
热议问题