Skip to content

Instantly share code, notes, and snippets.

@arunthampi
Created November 8, 2010 14:26
Show Gist options
  • Save arunthampi/667732 to your computer and use it in GitHub Desktop.
Save arunthampi/667732 to your computer and use it in GitHub Desktop.
If you want to handle button events separately from tap gestures
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
return ([[touch.view class] isSubclassOfClass:[UIButton class]]) ? NO : YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment