首页 > 代码库 > 打印控件子视图

打印控件子视图

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 }

打印控件子视图

打印控件子视图