UITableView详解:17-去除多余的单元格分割线
当Cell的数量不够覆盖整个屏幕的时候,系统默认情况下,会自动添加一些分割线(如下图所示),而有时我们并不希望显示这些分割线,因此可以利用FooterView来去除这些分割线。
去除多余的单元格分割线
设置方法如下:
//设置footerview
UIView *view = [UIView new];
view.backgroundColor = [UIColor clearColor];
self.tableView.tableFooterView = view;
添加后效果如下:
示例代码
https://github.com/99ios/8.2.17
文章发布时间为: November 12th , 2016 at 10:31 am
最后编辑时间为: September 13th , 2017 at 02:18 pm
本文由 99ios 创作,转载请注明出处
最后编辑时间为: September 13th , 2017 at 02:18 pm
本文由 99ios 创作,转载请注明出处