UICollectionView Assertion failure

前端 未结 14 2198
别那么骄傲
别那么骄傲 2020-11-29 17:27

I m getting this error on performing insertItemsAtIndexPaths in UICollectionView

Assertion failure in:

-[UICollectionViewD         


        
14条回答
  •  春和景丽
    2020-11-29 18:22

    The workaround that actually works is to return a height of 0 if the cell at your supplementary view's index path is not there (initial load, you've deleted the row, etc). See my answer here:

    https://stackoverflow.com/a/18411860/917104

提交回复
热议问题