/// 移除所有子控件
func removeAllSubViews(){
if self.view.subviews.count>0{
self.view.subviews.forEach({$0.removeFromSuperview()})
}
}
/// 移除所有子控件
func removeAllSubViews(){
if self.view.subviews.count>0{
self.view.subviews.forEach({$0.removeFromSuperview()})
}
}
转载于:https://www.cnblogs.com/qingzZ/p/9635444.html