title: iOS - UISearchController - definesPresentationContext layout issue
body: <p>I have a <code>UIViewController</code> with the navigation bar <code>HIDDEN</code>, a couple of buttons up top, and <code>UITableView</code> with a <code>UISearchController</code> as a header.
  Here is the issue: when I create the <code>UISearchController</code>, I also have this line:</p>
  
  <pre><code>    self.definesPresentationContext = YES;
  </code></pre>
  
  <p>Now what happens is that when I search using the <code>UISearchController</code>, and click on one of the results in the <code>UITableView</code>, it opens my following <code>UIViewController</code> (which is exactly what it is supposed to do -- and the following <code>UIViewController</code> also has the navigation bar hidden) correctly but it displays a grayish navigation bar at the top of the <code>UIViewController</code>, even though I'm setting the navigation bar as hidden.</p>
  
  <p>Now when I set:</p>
  
  <pre><code>    self.definesPresentationContext = NO;
  </code></pre>
  
  <p>The navigation bar does not appear in the following view but instead of that, the <code>UISearchController's SearchBar</code> appears in the following <code>UIViewController</code> at the same place as it was in the main view controller, even though it's obviously not supposed to be there anymore.</p>
  
  <p>This is what it's supposed to look like (top of the UIViewController):
  <a href="https://i.stack.imgur.com/1ILwx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1ILwx.png" alt="enter image description here"></a></p>
  
  <p>This is what happens when `self.definesPresentationContext = YES;</p>
  
  <p><a href="https://i.stack.imgur.com/jQaWi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jQaWi.png" alt="enter image description here"></a></p>
  
  <p>And this is what happens when `self.definesPresentationContext = NO;</p>
  
  <p><a href="https://i.stack.imgur.com/ILYRk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ILYRk.png" alt="enter image description here"></a></p>
  
  <p>How can I get back to situation number one?
  <strong>UPDATE</strong>
  Here is a sample project that duplicates this issue:
  <a href="http://www.filedropper.com/sampleprojectbugreport" rel="nofollow noreferrer">http://www.filedropper.com/sampleprojectbugreport</a></p>