You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.
If I add a button that is removing some section, it is crashing after scrolling to last section:
@IBAction func didClick(sender: AnyObject) {
numberOfSections -= 1;
let set = NSIndexSet(index: 2)
self.collectionView.deleteSections(set)
}
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xc000000000003116> {length = 2, path = 49 - 0}'
Can you help me how to resolve this issue?
The text was updated successfully, but these errors were encountered:
If I add a button that is removing some section, it is crashing after scrolling to last section:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xc000000000003116> {length = 2, path = 49 - 0}'
Can you help me how to resolve this issue?
The text was updated successfully, but these errors were encountered: