Search Bar doesn't disappear after segue to new ViewController
<p><code>Search Bar</code> doesn't want to disapper after segue to new <code>ViewController</code>. I create <code>search bar</code> doing it:</p>

<pre><code>    self.searchBar = UISearchController(searchResultsController: nil)
    self.searchBar.searchResultsUpdater = self
    self.searchBar.dimsBackgroundDuringPresentation = false


    self.navigationController?.extendedLayoutIncludesOpaqueBars = true
    self.tableView.tableHeaderView = self.searchBar.searchBar
    self.tableView.reloadData()
</code></pre>

<p>for segue to new <code>View Controller</code> from <code>TableViewController</code>I use this function:</p>

<pre><code>    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {

   self.performSegueWithIdentifier("ContentViewCOntroller", sender: self)       
} 
</code></pre>

<p>More details in this pictures:</p>

<p><a href="http://i.stack.imgur.com/PKxvO.jpg" rel="nofollow">First TableController where I search data</a></p>

<p><a href="http://i.stack.imgur.com/d6Xno.jpg" rel="nofollow">Second ViewControler with SearchBar, which schould disaper, but it still exist</a></p>