title: Hide UITableView when searchResultsTableView displayed
body: <p>I have a <code>UITableView</code> with a <code>searchDisplayController</code> implemented. I have</p>
  
  <pre><code>tableView.backgroundColor = [UIColor clearColor];
  </code></pre>
  
  <p>and</p>
  
  <pre><code>self.searchDisplayController.searchResultsTableview.backgroundColor = [UIColor clearColor];
  </code></pre>
  
  <p>When I enter text in the search field, the search results are displaying fine, but as the background of the resultant table is transparent, I am seeing my <code>tableview</code> and on the <code>tableview</code> the search result table is displayed. I want to hide the <code>tableView</code> when the searchField began editing. I have tried </p>
  
  <pre><code>-(BOOL)searchDisplayController:(UISearchDisplayController *)controller 
  shouldReloadTableForSearchString:(NSString *)searchString
  {
      [tableView setHidden:YES];
      [self filterContentForSearchText:searchString 
                                 scope:[[self.searchDisplayController.searchBar scopeButtonTitles]
                                        objectAtIndex:[self.searchDisplayController.searchBar
                                                       selectedScopeButtonIndex]]];
  
      return YES;
  }
  </code></pre>
  
  <p>But it hides the searchBar with the tableView. How to fix it?</p>