Skip to content

Instantly share code, notes, and snippets.

@marcpalmer
Last active December 16, 2015 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcpalmer/5481092 to your computer and use it in GitHub Desktop.
Save marcpalmer/5481092 to your computer and use it in GitHub Desktop.
/*
* 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