Skip to content

Instantly share code, notes, and snippets.

@kishikawakatsumi
Created February 24, 2013 13:38
Show Gist options
  • Save kishikawakatsumi/5023880 to your computer and use it in GitHub Desktop.
Save kishikawakatsumi/5023880 to your computer and use it in GitHub Desktop.
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gr
shouldReceiveTouch:(UITouch *)touch
{
if (gr != myGestureRecognizer) {
if ([super respondsToSelector:@selector(gestureRecognizer:shouldReceiveTouch:)]) {
return [super gestureRecognizer:gr shouldReceiveTouch:touch];
} else {
return YES;
}
}
// myGestureRecognizer の処理...
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment