title: iphone - single tap gesture conflicts with double one
body: <p>I have a view. I wish to define to kinds of tap gestures for it.</p>
  
  <p>So if a user single tap on the view, view will do A; and if a user double tap on the view, it will do B without doing A.</p>
  
  <p>I added two UITapGestureRecognizer to the view. the single tap is with numberOfTapsRequired = 1; and the double tap is with numberOfTapsRequired = 2;</p>
  
  <p>Also I set return NO for</p>
  
  <pre><code>- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
       return NO;
  }
  </code></pre>
  
  <p>However, I found that they conflict with each other. I mean, even if I double tap on the view, both A and B will be invoked. </p>
  
  <p>How can I solve this problem?</p>
  
  <p>Thanks</p>