Latest 100 public snipts »
hongster's
snipts » tree
showing 1-1 of 1 snipts for tree
-
∞ Inspect view hierarchy.
-(void)inspectView:(UIView *)aView level:(NSString *)level { NSLog(@"Level:%@", level); NSLog(@"View:%@", aView); NSArray *arr = [aView subviews]; for (int i=0;i<[arr count];i++) { [self inspectView:[arr objectAtIndex:i] level:[NSString stringWithFormat:@"%@/%d", level, i]]; } }


