Skip to content

Instantly share code, notes, and snippets.

@canapio
Created August 26, 2016 13:59
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 canapio/06bd6a7c5476a9bfe892d8e2364abf78 to your computer and use it in GitHub Desktop.
Save canapio/06bd6a7c5476a9bfe892d8e2364abf78 to your computer and use it in GitHub Desktop.
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
UIView *hitTestView = [super hitTest:point withEvent:event];
if (hitTestView == self) {
hitTestView = nil;
}
return hitTestView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment