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 }
时间: 2024-11-09 16:57:30