title: Disable gesture recognizer
body: <p>I have two types of recognizer, one for tap and one for swipe</p>
  
  <pre><code>UIGestureRecognizer *recognizer;
  
  //TAP
  recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(numTap1:)];
  [(UITapGestureRecognizer *)recognizer setNumberOfTouchesRequired:1];
  [self.view addGestureRecognizer:recognizer];
  self.tapRecognizer = (UITapGestureRecognizer *)recognizer;
  recognizer.delegate = self;
  [recognizer release];
  
  //SWIPE RIGHT
  recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRight:)];
  self.swipeRightRecognizer =(UISwipeGestureRecognizer *)recognizer;
  swipeRightRecognizer.direction = UISwipeGestureRecognizerDirectionRight;
  [self.view addGestureRecognizer:swipeRightRecognizer];
  self.swipeRightRecognizer = (UISwipeGestureRecognizer *)recognizer;
  [recognizer release];
  </code></pre>
  
  <p>with this function I can disable taps on some objects.</p>
  
  <pre><code>- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
  
  if ((touch.view == loseView) || (touch.view == subBgView) || (touch.view == btnAgain)) {
  
      return NO;
  }
  
  return YES;
  }
  </code></pre>
  
  <p>How can I disable swipes?</p>
  
  <p>Thanks a lot!</p>