title: Resetting UISearchbar programmatically
body: <p>Is there a possibility to reset a UISearchbar with searchDisplayController programmatically which is active and already contains text?</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
      if (tableView == self.searchDisplayController.searchResultsTableView) {
         searchDisplayController.searchResultsTableView.hidden = YES;
         searchBar.showsCancelButton = NO;
         [searchBar resignFirstResponder];
      }
  }
  </code></pre>
  
  <p>This solution is working, but there is still text in the searchBar. If i add those lines of code:</p>
  
  <pre><code>searchBar.text = @"";
  </code></pre>
  
  <p>There is always a black transparent view left.</p>
  
  <p>Any solutions?</p>