UICollectionView reloadData not functioning properly in iOS 7

后端 未结 17 1410
北荒
北荒 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:59

    I had exactly the same issue, however I managed to find what was going on wrong. In my case I was calling reloadData from the collectionView:cellForItemAtIndexPath: which looks not to be correct.

    Dispatching call of reloadData to the main queue fixed the problem once and forever.

      dispatch_async(dispatch_get_main_queue(), ^{
        [self.collectionView reloadData];
      });
    

提交回复
热议问题