I have a UISearchController with a UITableViewController as a searchResultsController, the UISearchBar of this sear
Try this out:
First you need to delegate the
UISearchControllerDelegate
For Swift
func willPresentSearchController(searchController: UISearchController) {
self.navigationController?.navigationBar.translucent = true
}
func willDismissSearchController(searchController: UISearchController) {
self.navigationController?.navigationBar.translucent = false
}