美文网首页
iOS tableView 隐藏多余的分割线

iOS tableView 隐藏多余的分割线

作者: 有啊有 | 来源:发表于2017-07-20 16:16 被阅读0次

想必很多初学者,写TableView的时候,不管怎么样,怎么都会多出来几条分割线,那么你可以这样隐藏:

1.[_tableView setTableFooterView:[[UIView alloc] init]];

2.UIView *view = [UIView new];

view.backgroundColor = [UIColor clearColor];

[_tableView setTableFooterView:view];

两种写法一样啊

相关文章

网友评论

      本文标题:iOS tableView 隐藏多余的分割线

      本文链接:https://www.haomeiwen.com/subject/vfcjkxtx.html