首页 > 学院 > 开发设计 > 正文

UITableView小知识点总结

2019-11-14 18:09:11
字体:
来源:转载
供稿:网友

 

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

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

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

 

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

self.tableView.tableFooterView = [UIView new];


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表