• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Avoid selection marking on cell tap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Avoid selection marking on cell tap
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: -[NSWindow parentWindow] for sheet never works?
  • Next by Date: Re: Avoid selection marking on cell tap
  • Previous by thread: Re: -[NSWindow parentWindow] for sheet never works?
  • Next by thread: Re: Avoid selection marking on cell tap
  • Index(es):
    • Date
    • Thread