移除所有子视图removeAllSubviews

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

相当于:

  while (thisView.subviews.count) {

    UIView* child = thisView.subviews.lastObject;

    [child removeFromSuperview];

  }

posted on 2012-08-17 14:44  黯夜曦  阅读(926)  评论(0编辑  收藏  举报

导航