I m getting this error on performing insertItemsAtIndexPaths in UICollectionView
insertItemsAtIndexPaths
UICollectionView
Assertion failure in:
-[UICollectionViewD
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