If I create a UITableViewController
, for example via File → New Project... → iOS → Master-Detail Application in Xcode, a UITableView
I think I just came up with an easy solution. lol.
The top answer have some problem...it decrease the left gap, but resulting a right gap.
I used the constrains in Interface Builder.
First add a -15 left margin constrain to the Table View.
Then add some Indentation to the Table Cell to make the contents look better.
↘
Here're some step-by-step pics:
Add the constraint. Remember to uncheck the "spacing to nearest neighbor".
The Table Cells will move left. But seems too close to margin.
So choose the Table Cell, and add some indentation in the right area.