I use UICollectionView to display server-related information. This UICollectionView allows cells selection to display some nested data. Unfortunately if user touches and holds any cells during my app calls [collectionView reloadData] this cell doesn't react on touches anymore (collectionView:didSelectItemAtIndexPath: method isn't called).
I can select any cells except this one.
I created simple application that can reproduce this problem: link
Any ideas how to fix it?
Looks like a bug (I believe there is a similar issue where a cell.selected = YES without a -selectItemAtIndexPath:animated:scrollPosition: caused the cell to be unable to be unselected)
However if you do this:
[self.collectionView reloadItemsAtIndexPaths:[self.collectionView indexPathsForVisibleItems]];
instead of [self.collectionView reloadData] it is working as expected.
Update: Found the answer of the issue mentioned above
Another Update: It appears that this indeed was a bug. Tested the original project on the iOS8 simulator and the issue now is resolved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With