I have a UICollectionView that uses a custom subclass of UICollectionViewFlowLayout to make the section headers stick to the top of the screen while scrolling just like UITableV
I have same problem. and I fixed it.
__weak typeof(self) weakSelf = self;
UICollectionView *collectionView = self.collectionView;
[UIView performWithoutAnimation:^{
[collectionView performBatchUpdates:^{
collectionView.collectionViewLayout = layout;
} completion:^(BOOL finished) {
__strong typeof(self) strongSelf = weakSelf;
if (strongSelf){
[strongSelf reloadThumbData];
}
}];
}];