• 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
Re: Double tap inside a UICollectionViewCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double tap inside a UICollectionViewCell


  • Subject: Re: Double tap inside a UICollectionViewCell
  • From: koko <email@hidden>
  • Date: Thu, 02 May 2013 10:48:59 -0600

On May 2, 2013, at 10:35 AM, Matt Neuburg <email@hidden> wrote:

> Well obviously if you want to detect double taps on a collection view *cell*, it might be simplest to attach the gesture recognizer to the collection view *cell* (not the collection view itself). m.

From the UICollectionView Programming Guide page 34:

You should always attach your gesture recognizers to the collection view itself and not to a specific cell or view. The UICollectionView class is a descendant of UIScrollView. Attaching your gesture recognizers to the collection view is less likely to interfere with the other gestures that must be tracked. In addition, because the collection view has access to your data source and your layout object, you still have access to all the information you need to manipulate cells and views appropriately.



I aint toopid and I kin reed  …


-koko
_______________________________________________

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


References: 
 >Re: Double tap inside a UICollectionViewCell (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Double tap inside a UICollectionViewCell
  • Next by Date: Re: Need advice: Object ownership and threading issue, causing a rare crash.
  • Previous by thread: Re: Double tap inside a UICollectionViewCell
  • Next by thread: Sorting a view based TableView with bindings
  • Index(es):
    • Date
    • Thread