title: iOS: UIVIew touches delegates vs single tap recognizer
body: <p>I am handling <code>Touches</code> delegates and <code>UITapGestureRecognizer</code> for single tap. Following are the methods. When I single tap on my View, I get three events in order of <code>TouchesBegan</code>, <code>SingleTap</code>, and <code>TouchesEnded</code>. Is there anyway to stop <code>TouchesEnded</code> event when I have <code>SingleTap</code> detected? Basicaaly I don't want to perform tasks in <code>TouchesEnded</code> if <code>TouchesMoved</code> didn't happen. I have done this using failTouchEnded BOOL variable in <code>SingleTap</code> and checking it in TouchesEnded but not sure if it is a good idea!</p>
  
  <pre><code>   - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
  
      }
  
      - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
            failTouchEnded = NO;
      }
  
      - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
            if(failTouchEnded) return;
  
      }
  
      - (void)GestureView:(GestureView*)view handleSignleTap:(UITapGestureRecognizer*)recognizer {
            failTouchEnded = YES;
      }
  </code></pre>