Skip to content

Instantly share code, notes, and snippets.

@stefanomondino
Last active August 29, 2015 13:58
Show Gist options
  • Save stefanomondino/9930745 to your computer and use it in GitHub Desktop.
Save stefanomondino/9930745 to your computer and use it in GitHub Desktop.
UnblockingView
@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