1、第一种去除所有的分割线
[tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
2、第二种去除指定cell的分割线
cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, cell.bounds.size.width);
1、第一种去除所有的分割线
[tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
2、第二种去除指定cell的分割线
cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, cell.bounds.size.width);
本文标题:iOS-如何机智的去除UITableView的Cell分割线
本文链接:https://www.haomeiwen.com/subject/xqnlvqtx.html
网友评论