Created
July 25, 2012 04:15
-
-
Save nakiwo/3174351 to your computer and use it in GitHub Desktop.
subviewだけtouchできるview
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
@interface TestView : UIView | |
@end | |
@implementation TestView | |
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event | |
{ | |
UIView *view = [super hitTest:point withEvent:event]; | |
if(view == self) { | |
return nil; | |
} | |
return view; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment