InvalidateLayout equivalent in iOS8

I find a call to invalidateLayout in iOS8 to trigger crash behavior, possibly due to a new invalidateLayout with contexts presented by the latest WWDC. However, I have not found an equivalent for invalidating the entire collection view schema.

Let's say I want everything to happen exactly like iOS7 invalidateLayout. What to do?

iOS7: [collectionView.collectionViewLayout invalidateLayout];

iOS8:

+3


source to share


1 answer


As of iOS 8, you'll want to invalidate the layout in the package update block:



    [collectionView performBatchUpdates:^{
        [layout invalidateLayout];
    } completion:nil];

      

+2


source







All Articles