Skip to content

Instantly share code, notes, and snippets.

@marcpalmer

marcpalmer/gist:5481092

Last active Dec 16, 2015
Embed
What would you like to do?
/*
* Tell the recognizer to ignore touches that began in controls
*/
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
return [touch.view isKindOfClass:[UIControl class]] ? NO : YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment