设置UITableView分割线距左边的间距

[self.tableView setSeparatorInset:UIEdgeInsetsZero];
[self.tableView setLayoutMargins:UIEdgeInsetsZero];

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
  [cell setSeparatorInset:UIEdgeInsetsZero];
  [cell setLayoutMargins:UIEdgeInsetsZero];
}```
原文地址:https://www.cnblogs.com/jyking/p/6737223.html