I've been battling with this for a while. The core issue is that my cells in a UICollectionView are disappearing when they are highlighted. I have no need for highlighting on my app, just selecting, so i've set:
func collectionView(collectionView: UICollectionView, shouldHighlightItemAtIndexPath indexPath: NSIndexPath) -> Bool {
return false
}
which means i'm not getting the highlight callbacks, or the undesired behaviour, but i'm no longer able to select items, even when setting:
func collectionView(collectionView: UICollectionView, shouldHighlightItemAtIndexPath indexPath: NSIndexPath) -> Bool {
return true
}
didSelectItemAtIndexPath is not getting called.
Am i missing a flag or something?
Any help greatly appreciated!