I have a question about UITableView…
I have a UITableViewController and I created a custom cell.
When I visualize the tableView I see a little white space before the separator line as you can see into this screenshot:
Why? It is a default visualize?
Can I change something to remove this white left padding?
Best Answer
The leading whitespace is provided by default in iOS 7, even for custom cells.
Checkout this property
separatorInset
of UITableviewCell to remove/add white spacing at either ends of cell's line separator.// Remove white space
Alternatively, at UITableView level, you can use this property -
Update - Below code works on iOS 7 and iOS 8: