第一种方法 (比较简单,一行搞定)
[self.view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
第二种方法
for (UIView *view in[self.view subviews]) {
[view removeFromSuperview];
}
第一种方法 (比较简单,一行搞定)
[self.view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
第二种方法
for (UIView *view in[self.view subviews]) {
[view removeFromSuperview];
}