Skip to content

Instantly share code, notes, and snippets.

@pablasso
Created February 21, 2013 21:37
Show Gist options
  • Save pablasso/5008481 to your computer and use it in GitHub Desktop.
Save pablasso/5008481 to your computer and use it in GitHub Desktop.
Check for hits on a view and ignore them yourself, passing them to your subviews.
- (id)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
id hitView = [super hitTest:point withEvent:event];
if (hitView == self) {
return nil;
}
return hitView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment