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

后端 未结 10 1419
天涯浪人
天涯浪人 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:39

    You just need to set contentInset property of the table view. You can set value according to your need.

    self.tableView.contentInset = UIEdgeInsetsMake(0, -15, 0, 0);

    OUTPUT RESULT

提交回复
热议问题