iOS7中cell的分割线右移的解决方法

if ([yourTableView respondsToSelector:@selector(setSeparatorInset:)]) {
    [yourTableView setSeparatorInset:UIEdgeInsetsZero];
}

 如果是xib设置的话,xib里的tableView的Separator Insets的Left默认是15,把它修改成0就可以了;如下图所示:

祝您愉快开心 ^_^

原文地址:https://www.cnblogs.com/tianglin/p/3499081.html