I did updated my data source, I dont use headers or footer in my collection view. At the first delegate its empty, then after the user add some data to the model, I am trying to add a new cell and section with :
let indexPath = NSIndexPath(forItem: 0, inSection: (0) )
collectionView.performBatchUpdates({
self.collectionView.insertSections(NSIndexSet(index:0 ))
self.collectionView.insertItemsAtIndexPaths([indexPath])
The crash has no explanation, but says something about array index - I don't know which array .
reason: '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
on the first row where you insert the section. (data has 1 value in the array!)
I could see some people said its a bug ?