设置tableViewcell 下划线宽度 及其颜色

2017-06-20  本文已影响0人  飞不飞

[self.tableView setSeparatorInset:UIEdgeInsetsZero];

[self.tableView setLayoutMargins:UIEdgeInsetsZero];

[self.tableView  setSeparatorColor:[UIColor  colorWithRed:255/255.0f green:255/255.0f blue:255/255.0f alpha:1]];

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{

[cell setSeparatorInset:UIEdgeInsetsZero];

[cell setLayoutMargins:UIEdgeInsetsZero];

}

上一篇 下一篇

猜你喜欢

热点阅读