I ran into this same problem when inserting the first cell into the collection view. I fixed the problem by changing my code so that I call UICollectionView
- (void)reloadData
when you insert the first cell, but
- (void)insertItemsAtIndexPaths:(NSArray *)indexPaths
when pasting all other cells.
Interestingly, I also had a problem with
- (void)deleteItemsAtIndexPaths:(NSArray *)indexPaths
when deleting the last cell. I did the same as before: just call reloadData when deleting the last cell.
Jay Slupesky Oct 19 '12 at 18:08 2012-10-19 18:08
source share