title: Clear search bar text when - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar call
body: <p>I am using a search bar in my application. On search bar keypad there is search button. On tapping of search button older text of search bar removed. When search button is pressed this method call:</p>
  
  <pre><code>- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
  </code></pre>
  
  <p>I want to clear search bar text, I have tried with this code:</p>
  
  <pre><code>-(void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
  {
       searchBar.text = nil; 
       //searchBar is object of UISearchBar
  }
  </code></pre>
  
  <p>I have already set the delegate for search bar, <code>searchBarSearchButtonClicked</code> method also called when search button is pressed. But it does not clear the searchbar text.</p>
  
  <p>Please any one suggest me how can i do that?</p>