title: how to show cancel button of searchbar?
body: <p>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.<br>
  It is done but my cancel button is not accessible when I bring up the UISearchBar 
  Thanks to All.</p>
  
  <pre><code>- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar
  {
      self.navigationController.navigationBar.hidden=TRUE;
      CGRect r=self.view.frame;
      r.origin.y=-44;
      r.size.height+=44;
  
      self.view.frame=r;
  
      searchBar.showsCancelButton=TRUE;
  
  }
  </code></pre>