Skip to content

Instantly share code, notes, and snippets.

@Lizdo
Created July 8, 2010 16:02
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 Lizdo/468217 to your computer and use it in GitHub Desktop.
Save Lizdo/468217 to your computer and use it in GitHub Desktop.
- (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
UIView *hitView = [super hitTest:point withEvent:event];
if (hitView == self)
//non of my subView's bounds are hit, and I'm transparent
return nil;
else
return hitView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment