White space before separator line into my TableView

后端 未结 8 1980
青春惊慌失措
青春惊慌失措 2020-11-30 19:49

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 separ

8条回答
  •  独厮守ぢ
    2020-11-30 20:47

    For those of you who want to make the retain the UIEdgeInsetSettings in Swift and are not using Storyboards:

    Before: (Default Behavior)

    Before, Default Setting

    Add the following code:

    tableView.separatorInset.right = tableView.separatorInset.left
    

    After, Implemented

提交回复
热议问题