美文网首页
2018-07-12 设置TableViewCell分割线/下划

2018-07-12 设置TableViewCell分割线/下划

作者: 绿茵奔腾者 | 来源:发表于2018-07-12 09:44 被阅读0次

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

    // 设置cell下划线颜色 和 颜色

    [tableView setSeparatorColor:[UIColor sCellLineColor]];

    [cell setSeparatorInset:UIEdgeInsetsZero];

    [cell setLayoutMargins:UIEdgeInsetsZero];

}

相关文章

网友评论

      本文标题:2018-07-12 设置TableViewCell分割线/下划

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