删除已有控件
2018-10-25 本文已影响0人
Simon_Liang
for (UIButton *btn in view.subviews) {
if ([btn isKindOfClass:[UIButton class]]) {
[btn removeFromSuperview];
}
}
for (UIButton *btn in view.subviews) {
if ([btn isKindOfClass:[UIButton class]]) {
[btn removeFromSuperview];
}
}