教你删除子试图

for(UIView *subview in [view subviews]) {
[subview removeFromSuperview];
}

for(UIView *subview in [view subviews]) {
if([subview isKindOfClass:[UIButton class]]) {
[subview removeFromSuperview];
} else {
// Do nothing - not a UIButton or subclass instance
}
}

posted on 2011-12-15 10:39  uniy  阅读(204)  评论(0)    收藏  举报

导航