Created
February 21, 2013 21:37
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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