UICollectionView reloadData not functioning properly in iOS 7

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

    inservif (isInsertHead) {
       [self insertItemsAtIndexPaths:tmpPoolIndex];
       NSArray * visibleIdx = [self indexPathsForVisibleItems];
       if (visibleIdx.count) {
           [self reloadItemsAtIndexPaths:visibleIdx];
       }
    }else if (isFirstSyncData) {
        [self reloadData];
    }else{
       [self insertItemsAtIndexPaths:tmpPoolIndex];
    }
    

提交回复
热议问题