I want to hide the Navigation Bar of my page when the user start editing on the searchbar, I also want to show a cancel button. It is done but my cancel button is not access
Use this code for showing cancel button. It will show button when you will enter text in searchBar.
cancel
searchBar
-(void) searchBarTextDidBeginEditing:(UISearchBar *)searchBar { [searchBar setShowsCancelButton:YES animated:YES]; }