UICollectionView assertion error on stale data

I run in the same problem. Code runs under 6.1 and crashes under 7.0
I solved the issue the following way:

In the function

-(NSInteger) numberOfSectionsInCollectionView:(UICollectionView *)collectionView

I call

[myCollectionView.collectionViewLayout invalidateLayout];

That´s all.

Leave a Comment