I am having a UITableViewController subclass and want to add left and right edge margins to the tableview. I tried below but that is not helping. I do not want to change the view hierarchy by moving tableview as subview to a UIView.
self.tableView.contentInset = UIEdgeInsetsMake(0.0, 20.0, 0.0, 20.0)
What can be done in this case?