Hide navigation bar after using search bar
问题 I have hidden my navigation bar in my table view controller, but after selecting the search bar and then dismissing it with Cancel it shows the navigation bar again. I tried -(void)searchBarTextDidEndEditing:(UISearchBar *)searchBar { self.navigationController.navigationBar.hidden = YES; } But it did not work, it did hide the navigation bar from the detail view though, but that was not desired. In storyboard I have a tabBarController --> navigationController --> tableView --> detailview.