• 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: Matt Neuburg <email@hidden>
  • Date: Thu, 02 May 2013 09:35:04 -0700

On Wed, 01 May 2013 18:23:10 -0600, koko <email@hidden> said:
>The code below from Collection View Programming Guide for iOS: Incorporating Gesture Support does not work as expected.  Is there something Apple has left out?
>
>Does not work as expected means @selector(handleTapGesture:)is not called if a double tap occurs in a UICollectionViewCell.  @selector(handleTapGesture:) is called if the double tap occurs outside a UICollectionViewCell.
>
>The question is how to get a double tap inside a UICollectionViewCell.
>
>    [self.collectionView addGestureRecognizer:tapGesture];
>

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.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do

_______________________________________________

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: Double tap inside a UICollectionViewCell
      • From: koko <email@hidden>
  • Prev by Date: Re: Built-in Activity Types
  • Next by Date: Re: Double tap inside a UICollectionViewCell
  • Previous by thread: Double tap inside a UICollectionViewCell
  • Next by thread: Re: Double tap inside a UICollectionViewCell
  • Index(es):
    • Date
    • Thread