title: iOS - Multiple Tap gesture recognizers
body: <p>In my application, i've to detect single, double and triple taps. So, I'm using UITapGestureRecognizer. I'm using the following code:</p>
  
  <pre><code>    UITapGestureRecognizer *oneTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTapGestureOnAnimal:)];
      oneTap.numberOfTapsRequired = 1;
  
      UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTapGestureOnAnimal:)];
      doubleTap.numberOfTapsRequired = 2;
      [doubleTap requireGestureRecognizerToFail:oneTap];
  
      UITapGestureRecognizer* tripleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTripleTapGestureOnAnimal:)];
      tripleTap.numberOfTapsRequired = 3;
      [tripleTap requireGestureRecognizerToFail:doubleTap];
  
      [self addGestureRecognizer:oneTap];
      [self addGestureRecognizer:doubleTap];
      [self addGestureRecognizer:tripleTap];
  </code></pre>
  
  <p>But the problem is that its always detect single and double taps only. Its not detecting triple tap at all.... can some one point out the mistake that I am doing to detect triple taps?</p>