I am using UISearchController to present a search bar inside the header view of a tableview:
... self.searchController.hidesNavigationBarDuringPresentation =
As mentioned in the first post everyone needed a different solution. So here is mine. I had to combine two things mentioned on this page, namely:
Swift 2:
navigationController?.navigationBar.translucent = true edgesForExtendedLayout = .None