Skip to content

Instantly share code, notes, and snippets.

@jeffbailey
Created December 30, 2014 16:30
Show Gist options
  • Save jeffbailey/61355571e5d213b947c8 to your computer and use it in GitHub Desktop.
Save jeffbailey/61355571e5d213b947c8 to your computer and use it in GitHub Desktop.
Utility method to see if the UIView or one of its superviews is hidden
- (BOOL)isViewHidden:(UIView *)view
{
if (view.hidden==YES || view.superview==nil) {
return YES;
}
return [self isViewHidden:view.superview];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment