title: How to detect double-taps on cells in a UICollectionView
body: <p>I want to respond to double-taps on cells in a UICollectionView, and have a double-tap action cancel cell selection.</p>
  
  <p>This is what I've tried:</p>
  
  <pre><code>UITapGestureRecognizer *tapRecogniser = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGesture:)];
  tapRecogniser.numberOfTapsRequired = 2;
  
   for (UITapGestureRecognizer *recogniser in [self.collectionView gestureRecognizers]) {
      [recogniser requireGestureRecognizerToFail:tapRecogniser];
  }
  
  [self.collectionView addGestureRecognizer:tapRecogniser];
  </code></pre>
  
  <p>That is, I am trying to get the default gesture recognisers to fail if my double-tap gesture recogniser succeeds.</p>
  
  <p>This doesn't appear to work, as my collection view delegate's <code>collectionView:didSelectItemAtIndexPath:</code> is still getting called after a double-tap</p>
  
  <hr>
  
  <h3>Note on Apple's UICollectionViewController Docs</h3>
  
  <p><a href="http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/CollectionViewPGforIOS/IncorporatingGestureSupport/IncorporatingGestureSupport.html#//apple_ref/doc/uid/TP40012334-CH4-SW4">Apple's documentation</a> is misleading on this point, claiming that the default gesture recogniser is an instance of a UITapGestureRecognizer subclass, so it can be easily picked out with <code>[recogniser isKindOfClass:[UITapGestureRecognizer class]]</code>. Unfortunately this is an error.</p>