移除所有子视图
[view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
显示、隐藏所有子视图
//隐藏所有子视图
[view.subviews makeObjectsPerformSelector:@selector(setHidden:) withObject:@YES];
//显示所有子视图
[view.subviews makeObjectsPerformSelector:@selector(setHidden:) withObject:@NO];
移除父视图的某一具体子视图
for (id obj in self.superview.subviews) {
if ([obj isMemberOfClass:[SomeCertainClass class]]) {
[obj removeFromSuperview];
}
}