title: iOS 9 searchBar disappears from table header view when UISearchController is active
body: <p>The structure:</p>
  
  <p>View1 (click a button) -> present modally (MyModalView: UITableViewController)</p>
  
  <p>MyModalView has UISearchController embedded. The searchBar of UISearchController is placed in MyModalView.tableView.tableHeaderView.</p>
  
  <p>It's been working fine since iOS 8.0. However on iOS 9, the searchBar disappear when the UISearchController is active. Please take a look at theses pictures below</p>
  
  <p>The modal view:<a href="https://i.stack.imgur.com/OD0bX.png"><img src="https://i.stack.imgur.com/OD0bX.png" alt="modal view"></a></p>
  
  <p>UISearchController active on iOS 8:<a href="https://i.stack.imgur.com/uLELV.png"><img src="https://i.stack.imgur.com/uLELV.png" alt="search bar in iOS 8"></a></p>
  
  <p>UISearchController active on iOS 9:<a href="https://i.stack.imgur.com/soToc.png"><img src="https://i.stack.imgur.com/soToc.png" alt="search bar in iOS 9"></a></p>
  
  <p>The very standard code:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      // Dynamically create a search controller using anonymous function
      self.resultSearchController = ({
          let controller = UISearchController(searchResultsController: nil)
          controller.searchResultsUpdater = self
          controller.dimsBackgroundDuringPresentation = false
  
          controller.searchBar.sizeToFit()
          controller.searchBar.delegate = self
  
          self.tableView.tableHeaderView = controller.searchBar
  
          return controller
      })()
  
      // Auto sizing row &amp; cell height
      self.tableView.estimatedRowHeight = 130
      self.tableView.rowHeight = UITableViewAutomaticDimension
      self.definesPresentationContext = true
  
      // No footer for better presentation
      self.tableView.tableFooterView = UIView.init(frame: CGRectZero)
  }
  </code></pre>
  
  <p>This issue also happens in iOS 9.1 beta... </p>
  
  <p>Any idea / pointer would be deeply appreciated</p>
  
  <p>Cheers.</p>