title: UISearchController not dismissed when View is pushed
body: <p>I know this is a long write-up, but it's just one issue I promise.</p>
  
  <h3>The Setup</h3>
  
  <p>I'm getting some very strange behavior with a UISearchController. Let me describe the hierarchy, then I'll explain step by step what happens in my video:</p>
  
  <p>The first view you see is a regular ViewController, with a tableView and the UISearchController as completely separate entities. The UISearchController has its own searchResultsController that I set when I create it:</p>
  
  <pre><code>let searchResultsController = MyResultsControllerClass()
  searchController = UISearchController(searchResultsController: searchResultsController)
  </code></pre>
  
  <p>That's the basic setup. </p>
  
  <h3>The Behavior</h3>
  
  <p><a href="https://www.youtube.com/watch?v=His88a-3Tnk" rel="nofollow noreferrer">A link to a video of the behavior</a></p>
  
  <p>The <code>MyResultsControllerClass</code> has a tableView, as well as a pointer back to the master view controller all these views are housed in.  When the searchController's searchBar begins searching, you see that tableView show up. Then I tap a result, Programming Club. The <code>MyResultsControllerClass</code> uses the pointer to the master view to push a new view controller (just details about that event) like so:</p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  
      let activityDetail = ActivityDetailViewController(nibName: nil, bundle: nil, activity: searchResults[indexPath.row])
      parentController?.navigationController?.pushViewController(activityDetail, animated: true)
  }
  </code></pre>
  
  <p>You can see this happen behind the searchBar, but the searchController is not "covered up" by the presented view! This is my issue. As you can see, I can still interact with it. When I press "Cancel", it finally disappears. </p>
  
  <h3>What I've tried</h3>
  
  <p>Now, I thought this might have to do with the fact that a UISearchController is in fact a UIViewController, if I understand correctly. So I attempted pushing from the UISearchController, nothing happens. I tried embedding the UISearchController in its own UINavigationController and pushing from searchController.navigationController, nothing happens. I can completely cancel the editing before pushing, but I want the editing to still exist when they navigate back. </p>
  
  <p>What am I doing wrong? Is there a better way to do this?</p>