The left side of the tableView split line is 15 pixels short.
In ios7, the left side of UITableViewCell has a default white space of 15 pixels. Set setSeparatorInset: UIEdgeInsetsZero to remove the white space.
In ios8, The setSeparatorInset: UIEdgeInsetsZero setting no longer works.
The following is a solution. First Add the following code to the viewDidLoad method:
If ([self. tableView respondsToSelector: @ selector (setSeparatorInset :)])
{
[Self. tableView setSeparatorInset: UIEdgeInsetsZero];
}
If ([self. tableView respondsToSelector: @ selector (setLayoutMargins :)])
{
[Self. tableView setLayoutMargins: UIEdgeInsetsZero];
}
Then add the following code to the proxy method of UITableView:
-(Void) tableView :( UITableView *) tableView willDisplayCell :( UITableViewCell *) cell forRowAtIndexPath :( NSIndexPath *) indexPath
{
If ([cell respondsToSelector: @ selector (setSeparatorInset :)])
{
[Cell setSeparatorInset: UIEdgeInsetsZero];
}
If ([cell respondsToSelector: @ selector (setLayoutMargins :)])
{
[Cell setLayoutMargins: UIEdgeInsetsZero];
}
}