How can a get the auto layout size of the UICollectionViewCells in iOS 8? (systemLayoutSizeFittingSize returns size with zero height in iOS 8)

后端 未结 8 538
心在旅途
心在旅途 2021-01-30 14:21

Since iOS 8 [UIColletionViewCell systemLayoutSizeFittingSize:UILayoutFittingCompressedSize] returns a size with height of 0.

Here\'s what the code

8条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 15:08

    Looks like this officially a bug: I filed a report that was closed as a duplicate of this one

    Will report back when Beta 6 is out.

    [Update: working properly in the GM seed of iOS 8, and the bug has been closed by Apple.]

提交回复
热议问题