Reputation: 576
I'm using auto layout to design tableview that uses full margins of the cells and it's working partially.
Also tableView separatorStyle is not working too
class HomeTableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.tableView.separatorStyle = UITableViewCellSeparatorStyle.None
Upvotes: 3
Views: 262
Reputation: 3288
First disable the features width any and height any of both the tableview and tableview cell. click on pin for image view or view you are using as background of cell select all the constraint left,right,top & bottom.You are selecting left,top,bottom in image above you posted. Deselect the height and width you are showing in image above.
If you want to place the text vew or label or etc in right of the table view then select left,right,top and only height. This would definately solve your problem. i am unable to post the image since i didnt have 10 reputation.Hope it will solve your problem.
Now You can also follow these methods:
iOS - Custom table cell not full width of UITableView
Upvotes: 4