How to determine height of UICollectionView with FlowLayout

前端 未结 13 2110
醉话见心
醉话见心 2020-11-28 18:01

I\'ve got an UICollectionView with an UICollectionViewFlowLayout, and i want to calculate its content size (for return in intrinsicContentSiz

13条回答
  •  青春惊慌失措
    2020-11-28 18:22

    In addition,you'd better calling reloadData before getting the height:

    theCollectionView.collectionViewLayout.collectionViewContentSize;
    

提交回复
热议问题