Navigation bar hides when UISearchbar cancel button is clicked
Problem with navigation bar. Scenario -
After a successful search, I clicked on the result / cell as a table and went to the next screen for details of the search results, returning to the search results screen by clicking on the cancel button. It resets the UISearchBar but hides the navigation bar.
- Before searching
- On clicking the search bar
- Returning from the details screen to the search results screen (the navigation bar is hidden)
I tried
self.navigationController.navigationBar.hidden = NO;
in
searchBarCancelButtonClicked:(UISearchBar *)searchBar
but no luck.
+3
source to share
No one has answered this question yet
Check out similar questions: