[[thisView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];相当于: while (thisView.subviews.count) { UIView* child = thisView.subviews.lastObject; [child removeFromSuperview]; }
本文共 251 字,大约阅读时间需要 1 分钟。
[[thisView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];相当于: while (thisView.subviews.count) { UIView* child = thisView.subviews.lastObject; [child removeFromSuperview]; }
转载于:https://my.oschina.net/daxiaLKS/blog/532029