I've found a wierd bug for my app on iOS6.
I am using a Collection view to represent a "tree structure" for my app. Each cell has a tableview inside it, and when I select a cell in the table view, i push a new collection view cell with another tableview.
When selecting a tableview cell in the "root of the tree", i need to purge the other collection view cells, and display the new one. I am doing this like this:
for(id e in oldData)
{
if(i < indexPath.row)
{
[newData addObject:e];
}
else
{
[indexPaths addObject:[NSIndexPath indexPathForItem:i inSection:indexPath.section]];
}
i++;
}
self.tree = newData;
[self.collectionView deleteItemsAtIndexPaths:indexPaths];
This works splendid in iOS7. However, in iOS6 i sometimes get this exception:
'NSInvalidArgumentException', reason: '-[UICollectionViewUpdateItem action]: unrecognized selector sent to instance 0xa3eedd0'
This exceptions occur on the row
[self.collectionView deleteItemsAtIndexPaths:indexPaths];
I've found some threads about this particular problem, but it seems to be related to a keyboard appearance on iOS6.
How to find a workaround for this bug on iOS6?
Thanks.
Edit:
I think the cause of the problem is this. Check my new question: Subclassing UICollectionViewFlowLayout sometimes crashes on iOS6