UITableView小知识点总结时间:2023-03-10 02:48:20 1.UITableView去除空的cell,多余不用的 在viewdidload方法里加上这一句即可 self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; self.tableView.tableFooterView = [[UIView alloc] init]; self.tableView.tableFooterView = [UIView new];