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
searchBar.showsCancelButton=YES;