title: How to detect tap and double tap at same time using UITapGestureRecognizer?
body: <p>For example I have a view where I want two different gestures:</p>
  
  <p>tap to do action A.
  double tap to do action B.</p>
  
  <p>The problem is with UITapGestureRecognizer I can only set minimum required tap count. The single tap gesture recognizer recognizes a tap before the double tap gesture recognizer recognizes the double tap.</p>
  
  <p>Example:</p>
  
  <pre><code>_tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGestureRecognized:)];
  _tapGestureRecognizer.numberOfTouchesRequired = 1;
  _tapGestureRecognizer.numberOfTapsRequired = 1;
  [self addGestureRecognizer:_tapGestureRecognizer];
  
  _doubleTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(doubleTapGestureRecognized:)];
  _doubleTapGestureRecognizer.numberOfTouchesRequired = 1;
  _doubleTapGestureRecognizer.numberOfTapsRequired = 2;
  [self addGestureRecognizer:_doubleTapGestureRecognizer];
  </code></pre>
  
  <p>It always recognizes the single tap even if I do double tap very fast. How can I set it up so the tap gesture recognizer waits and sees if the double tap gesture recognizer recognizes?</p>