Why does UICollectionView log an error when the cells are fullscreen?

后端 未结 10 1323
悲&欢浪女
悲&欢浪女 2020-12-08 04:06

I have a UICollectionViewController using a UICollectionViewFlowLayout where my itemSize is the size of the UICollectionView

10条回答
  •  独厮守ぢ
    2020-12-08 05:04

    iOS 11 update: automaticallyAdjustsScrollViewInsets is deprecated in iOS 11.0.

    Apple recommends using UIScrollView's contentInsetAdjustmentBehavior method instead. I set this value to .never and the error has gone. You can also set this property in Interface Builder.

提交回复
热议问题