(成功)调用UICollectionViewLayout“锁定”的错误消息
__weak typeof(self) wself = self;
[self.collectionView performBatchUpdates:^{
[wself.collectionView.collectionViewLayout invalidateLayout];
[wself.collectionView setCollectionViewLayout:self.layoutDeletion animated:YES];
} completion:nil];
后,我收到以下错误信息:
trying to load collection view layout data when layout is locked
操作正常工作,只是一个特定UICollectionViewCell没有加载其子视图。
我从来没有见过这个错误信息,包括谷歌。任何想法可能会导致这种情况?
对于iOS 9来说,我需要在完成块中调用'setCollectionViewLayout'来消除警告。 – 2016-07-28 18:57:19