美文网首页
设置tableViewcell 下划线宽度 及其颜色

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

作者: 飞不飞 | 来源:发表于2017-06-20 14:50 被阅读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];

}

相关文章

网友评论

      本文标题:设置tableViewcell 下划线宽度 及其颜色

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