while (self.subviews.count) { [self.subviews.lastObject removeFromSuperview]; }
while (self.subviews.count) {
[self.subviews.lastObject removeFromSuperview];
}
本文标题:一行代码移除所有子元素
本文链接:https://www.haomeiwen.com/subject/txibqftx.html
网友评论