设置TableViewCell分割线

设置完之后,发现分割线距离左边并不是为0。
只需要再设置layoutMargins属性即可,两者缺一不可。

        cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0)
        cell.layoutMargins = UIEdgeInsetsMake(0, 0, 0, 0) 
原文地址:https://www.cnblogs.com/superbobo/p/5693890.html