打印控件子视图

1 - (void)explode:(id)aView level:(int)aLevel {
2          for (int i = 0; i < aLevel; i++)
3                    printf("-");
4          printf("%s:%s/n",[[[aView class] description] UTF8String],[[[aView superclass] description] UTF8String]);
5         
6          for(UIView *subview in [aView subviews])
7                    [self explode:subview level:(aLevel + 1)];
8 }

打印控件子视图

posted @ 2014-12-16 17:19  漫步彩云间  阅读(135)  评论(0编辑  收藏  举报