title: Table view top space to navigation bar increased after pressing back
body: <p>When I click one of the cells in the table view, it opens a new view with the following code:</p>
  
  <pre><code>   let fullResView : FullResponseViewController = self.storyboard?.instantiateViewControllerWithIdentifier("FullResponseView") as! FullResponseViewController
     fullResView.receivedPost = post
     self.navigationController?.pushViewController(fullResView, animated: false)
  </code></pre>
  
  <p>When I press back, it increases the distance between the table view and the Top Layout Guide. Representation:</p>
  
  <p><a href="https://i.stack.imgur.com/Fzy9J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fzy9J.png" alt="table view navigation controller error."></a></p>
  
  <p><strong>Hierarchy:</strong></p>
  
  <ul>
  <li>I have a tab bar controller, that is embedded in a navigation controller.</li>
  <li>The table view is drag &amp; dropped after creating an normal view. So the table view is inside a View.</li>
  <li>Table view does contain an header view. When setting a background color for this, it moves together with it, so it should not be anything with those constraints.</li>
  </ul>
  
  <p><strong>constraints for the table view are:</strong></p>
  
  <ul>
  <li>equal with to superview</li>
  <li>Align Center X to superview</li>
  <li>top space to Top Layout Guide</li>
  <li>bottom space to Bottom Layout Guide</li>
  </ul>
  
  <p>I've tried the following:</p>
  
  <p>set this in viewWillAppear:</p>
  
  <pre><code>self.responsesTableView.contentOffset =  CGPointMake(0, 0)
  self.automaticallyAdjustsScrollViewInsets = false
  </code></pre>
  
  <p>This did work when I pressed back, then switch to another view in the tab bar, and then switch back again. Without <code>contentOffset</code> it will stay like this forever.</p>