无需循环,移除当前视图所有子视图 //移除当前视图子视图 [self.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];