How to remove UITableView top inset when embedded in ContainerView?
<p>I am currently working on an iPhone App. I now have a problem with the top spacing inset of a UITableView. See this screenshot:</p>

<p><a href="https://i.stack.imgur.com/mFBi5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mFBi5.png" alt="App Running. See the space?"></a></p>

<p>There should be no space between the table view cells and the buttons.</p>

<p>I do not know how to fix this. The UITableView is embedded in a ContainerView like this:</p>

<p><a href="https://i.stack.imgur.com/QDVsV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QDVsV.png" alt="Storyboard View Controller"></a></p>

<p>I think I got the container view constraints right. Top Space to Chapter Button is set to <code>0</code>.</p>

<p><a href="https://i.stack.imgur.com/Amvno.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Amvno.png" alt="Container View Constraints"></a></p>

<p>I tried to change some settings of the table view controller in storyboard. For example the <code>Adjust Scroll View Insets</code>. However it does not change anything when I disable that.</p>

<p><a href="https://i.stack.imgur.com/2LBma.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2LBma.png" alt="TableViewController Settings"></a></p>

<p>I also tried to set the TableView insets directly in the code in <code>viewDidLoad()</code>:</p>

<p><code>tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)</code></p>

<p>However this also did not fix it.</p>

<p>Can anyone help? I have no idea where to look.</p>