UICollectionView exception in UICollectionViewLayoutAttributes from iOS7

后端 未结 7 923
离开以前
离开以前 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:31

    I had the same exception: in iOS 7, you need now to override the inherited isEqual: in your UICollectionViewLayoutAttributes subclass as stated in Apple documentation here.

提交回复
热议问题