title: How do you add a button to a UISearchBar within UITableview's header?
body: <p>My question is different than <a href="https://stackoverflow.com/questions/4458030/how-to-add-button-to-uisearchbar">how to add button to UISearchBar</a> , as he is adding the searchbar in a navigation bar and I need to use a table view for the same.</p>
  
  <p>I am working in an app in which I need to add a button beside the search box in UISearchbar. I tried to find a solution for this but the only way I've found is using UINavigationBar. However, I need to animate the searchbar on begin and end of an editing event, so putting it on a navigation bar doesn't meet my needs. </p>
  
  <p>I have put my search bar in my UITableview's header view so that it can scroll with the table view. It works fine and animates as expected and of course scrolls, except for the button beside the search box.</p>
  
  <p>Is there any other way to add a button beside the search box in UISearchBar?</p>