UICollectionView exception in UICollectionViewLayoutAttributes from iOS7

后端 未结 7 880
离开以前
离开以前 2020-12-07 15:55

I have done a View in CollectionView with CustomLayout. In iOS6 it worked great but iOS7 it throws an exception like this.

Terminating app due to uncaught exception

7条回答
  •  一生所求
    2020-12-07 16:23

    I solved my problem by override the method at the subclase of UICollectionViewFlowLayout:

    - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBound
    

    return YES

提交回复
热议问题