隐藏 UITableView 下不需要的分割线

来源:互联网 发布:java中compareto的用法 编辑:程序博客网 时间:2024/05/16 09:51
UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.width, 1)];v.backgroundColor = [UIColor clearColor];[self.tableView setTableFooterView:v];

2.使用已有的方法

self.tableView.separatorColor=[UIColor colorWithWhite:1 alpha:0];


0 0