for (UIView * subview in [self.bgView subviews]) { [subview removeFromSuperview]; } 转载于:https://www.cnblogs.com/allenwuhen/p/9138169.html