作者:刘新林

转载请标明出处:http://blog.youkuaiyun.com/loving_ios/article/details/69525415
设置tableView的style为UITableViewStyleGrouped时不会出现这种情况,当设为UITableViewStylePlain 时tableView的底部会出现多余的行和分割线,
解决方法:
在viewDidLoad函数中加上此句代码:
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]或者[UIView new];
即可去除UITableView底部多余行及分割线
本文介绍了如何解决UITableViewStylePlain样式下UITableView底部出现多余行和分割线的问题。通过在viewDidLoad函数中设置self.tableView.tableFooterView=[[UIView alloc] initWithFrame:CGRectZero],可以有效去除这些不必要的元素。
658

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



