for (UIView *subview in [cell.contentView subviews])
[subview removeFromSuperview];
本文介绍了一种方法来清除UITableView中UITableViewCell的所有子视图。通过遍历cell.contentView的子视图并移除它们,可以有效地实现UITableViewCell的重置。
for (UIView *subview in [cell.contentView subviews])
[subview removeFromSuperview];

被折叠的 条评论
为什么被折叠?