移除所有子视图removeAllSubviews
[[thisView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
相当于:
while (thisView.subviews.count) {
UIView* child = thisView.subviews.lastObject;
[child removeFromSuperview];
}
[[thisView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
相当于:
while (thisView.subviews.count) {
UIView* child = thisView.subviews.lastObject;
[child removeFromSuperview];
}