Re: Double tap inside a UICollectionViewCell
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