移除所有子视图,无需循环只需要一句代码 [view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)]; 转载于:https://www.cnblogs.com/songchunmin/p/7789717.html