概述
警告框,模态(modal)形式,在关掉警告框之前,不能与警告框之外的UI交互
UIAlertView
view层次体系
- (void)displayViewHierarchy:(UIView *)view Level:(int)level
{
if(view.subviews.count)
{
NSLog(@"level = %d, viewtype = %s, subviewcount = %lu", level, class_getName([view class]), view.subviews.count);
for(int i = 0; i < view.subviews.count; i++)
{
[self displayViewHierarchy:[view.subviews objectAtIndex:i] Level:level+1];
}
}
else
{
NSLog(@"level = %d, viewtype = %s", level, class_getName([view class]));
}
}