移除所有子视图removeAllSubviews

[[thisView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];

相当于:

  while (thisView.subviews.count) {

    UIView* child = thisView.subviews.lastObject;

    [child removeFromSuperview];

  }

原文地址:https://www.cnblogs.com/appwgh/p/2644034.html