Skip to content

Instantly share code, notes, and snippets.

@ddeville
Created September 1, 2011 15:38
Show Gist options
  • Save ddeville/1186439 to your computer and use it in GitHub Desktop.
Save ddeville/1186439 to your computer and use it in GitHub Desktop.
Recursively print UIView hierarchy for a particular view
- (void)printViewHierarchy:(UIView *)view
{
if (view == nil)
return;
NSLog(@"%@", view);
for (UIView *subview in [view subviews])
{
[self printViewHierarchy: subview];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment