title: Swift UISearchController when select item search bar is still there
body: <p>I have two problems with <code>UISearchController</code>.
  I use this setup for UISearchController:</p>
  
  <pre><code>var resultSearchController = UISearchController(searchResultsController: nil)
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      resultSearchController = UISearchController(searchResultsController: nil)
      resultSearchController.searchResultsUpdater = self
      resultSearchController.dimsBackgroundDuringPresentation = false
      resultSearchController.hidesNavigationBarDuringPresentation = false
      resultSearchController.searchBar.placeholder = "Traži.."
      resultSearchController.searchBar.sizeToFit()
      tableView.tableHeaderView = resultSearchController.searchBar
  
      refreshControl = UIRefreshControl()
      refreshControl!.attributedTitle = NSAttributedString(string: "Učitaj podatke..")
      refreshControl!.backgroundColor = UIColor(red:1, green:0.48, blue:0, alpha:0.3)
      refreshControl!.tintColor = UIColor.whiteColor()
      refreshControl!.addTarget(self, action: #selector(ArticleTableViewController.getArticleData), forControlEvents: UIControlEvents.ValueChanged)
      tableView.addSubview(refreshControl!)
  }
  </code></pre>
  
  <p><strong>First problem</strong></p>
  
  <p>when i click on search bar textfield, <code>UIRefreshControl</code> shows but it shouldn't:</p>
  
  <p><a href="https://i.stack.imgur.com/lHvtD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lHvtD.jpg" alt="enter image description here"></a></p>
  
  <p><strong>Second problem</strong></p>
  
  <p>when i search for item, and click on it, i use Storyboard segue to open that item in new viewcontroller, but problem is that search bar is still there on that new VC(first image is searching, second image shows new VC opened):</p>
  
  <p><a href="https://i.stack.imgur.com/5YO0w.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5YO0w.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/MDN4B.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MDN4B.jpg" alt="enter image description here"></a></p>