title: How do you hide/show UISearchBar's scope bar with animation?
body: <p>I want to show no scope bar when the table is empty (before the search bar edits for the first time), no scope bar when it's editing, and finally show it when editing done. I know about the UISearchBarDelegate protocol, but I don't know how to show/hide the scope bar with animation. I know UISearchBar has <code>setShowsScopeBar:</code>, but no <code>setShowsScopeBar:animated:</code> the way it does for <code>setShowsCancelButton:animated</code>.</p>
  
  <p><strong>Edit</strong>
  It's important that to call <code>[searchBar sizeToFit]</code> after showing/hiding the scope bar. Is there a good way to animate this? (Should I do <a href="https://stackoverflow.com/questions/1558475/how-do-you-animate-the-resizing-of-a-tableview-without-its-rows-subviews-getting">this</a>? It doesn't appear to work.)</p>