·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> app软件开发 >> IOS开发 >> UITableView小知识点总结

UITableView小知识点总结

作者:佚名      IOS开发编辑:admin      更新时间:2022-07-23

 

1.UITableView去除空的cell,多余不用的

在viewdidload方法里加上这一句即可

self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];

 

self.tableView.tableFooterView = [[UIView alloc] init];

self.tableView.tableFooterView = [UIView new];