contentSize is not updated after reloadData is called on UICollectionView

前端 未结 5 2002
醉话见心
醉话见心 2020-12-23 11:39

Does anyone know why contentSize is not updated immediately after reloadData is called on UICollectionView?

If you need to know the contentSize the best work around

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 12:09

    To get the content size after reload, try to call collectionViewContentSize of the layout object. It works for me.

提交回复
热议问题