Assertion Failure in UICollectionViewData indexPathForItemAtGlobalIndex

后端 未结 8 2056
南旧
南旧 2020-12-15 04:15

I am using performBatchUpdates() to update my collection view, where I am doing a complete refresh, i.e. delete whatever was in it and re-insert everything.

8条回答
  •  不思量自难忘°
    2020-12-15 04:30

    A cheeseball mistake that can lead to this error is reusing the same UICollectionViewFlowLayout on multiple collectionViews on the same viewcontroller! Just init different flowLayouts for each collectionview and you'll be good to go!

提交回复
热议问题