移除子视图
for view in self.view.subviews {
view.removeFromSuperview()
}
寻找一个特定的类
for view:CustomViewClass! in self.view.subviews {
if view.isKindOfClass(CustomViewClass) {
view.doClassThing()
}
}
移除子视图
for view in self.view.subviews {
view.removeFromSuperview()
}
寻找一个特定的类
for view:CustomViewClass! in self.view.subviews {
if view.isKindOfClass(CustomViewClass) {
view.doClassThing()
}
}