ContentInset of UITableView, Swift
<p>In my app I have a view controller and it has a tableview as subview. Bellow navigation bar I have two subviews (with the total height of 85 px).
The problem is that the part of table view is covered by these views.</p>

<p><a href="https://i.stack.imgur.com/8Wrkz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Wrkz.png" alt="enter image description here"></a></p>

<p>I have set the contentInset of tableview in viewDidLoad, however it does not solve the problem. Here is my code </p>

<pre><code>    override func viewDidLoad() {

        super.viewDidLoad()
        tableView = UITableView(frame: self.view.frame, style: .plain)
        tableView.delegate = self
        tableView.dataSource = self
        tableView.tableFooterView = UIView()
        tableView.register(OrderCell.self, forCellReuseIdentifier: orderCell)
        self.view.addSubview(self.tableView)
        tableView.separatorStyle = .none

        tableView.contentInset =  UIEdgeInsetsMake(85, 0, 0, 0)
        tableView.scrollIndicatorInsets = UIEdgeInsetsMake(85, 0, 0, 0)

    navigationController?.navigationBar.isTranslucent = false

    setupMenuBar()
    setupStatusView()
}
</code></pre>

<p>How can I fix this? </p>