collectionViewContentSize in iOS 10 using self-sizing cells

后端 未结 4 1272
你的背包
你的背包 2021-02-08 13:05

Prior to iOS 10, I had a self-sizing table view that solely consisted of a UICollectionView with self-sizing cells using a standard UICollectionViewFlowLayout. The collection v

4条回答
  •  生来不讨喜
    2021-02-08 13:37

    I got same issue when develop my app on iOS 10. Remove the first line solved my problem.

    self.collectionView.frame = CGRectMake(0, 0, targetSize.width, FLT_MAX); //Remove this

    Hope this help!

提交回复
热议问题