Last active
August 29, 2015 13:58
-
-
Save stefanomondino/9930745 to your computer and use it in GitHub Desktop.
UnblockingView
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 UnblockingView : UIView | |
@end | |
@implementation UnblockingView | |
-(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event { | |
for (UIView *view in self.subviews) { | |
if (!view.hidden && view.userInteractionEnabled && [view pointInside:[self convertPoint:point toView:view] withEvent:event]) | |
return YES; | |
} | |
return NO; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment