Avoid selection marking on cell tap
Avoid selection marking on cell tap
- Subject: Avoid selection marking on cell tap
- From: Rick Mann <email@hidden>
- Date: Tue, 24 Nov 2015 15:38:14 -0800
I have a UICollectionView with a bunch of cells, like ya do. Our selection marking doesn't really work for the tap that segues into the detail view. We only use the selection marking when in edit mode (e.g. deleting a bunch of items).
I can't figure out how to tell the collection view to not mark things as selected but still allow them to be tapped and segued-from.
I tried
func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAtIndexPath indexPath: NSIndexPath) -> Bool
But that prevents the segue if I return false (incorrectly, IMHO).
I can probably do it by iterating all the cells and changing their mode, but this seems inelegant.
Is there another way?
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden