How do I adjust the left margin for prototype cells in a UITableView?

后端 未结 10 1434
天涯浪人
天涯浪人 2020-12-02 14:27

If I create a UITableViewController, for example via File → New Project... → iOS → Master-Detail Application in Xcode, a UITableView

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 14:44

    And if you want to change just the left margin of the cell's textlabel only, then change the Horizontal Space Constraint 'Constant' to say 16 or 8 based on the padding you want.(This is in the nib file). If you cant get to the 'constant' Select the label, change the x coordinate in the FrameRectangle View, and then click on the constraint pin at the left)

提交回复
热议问题