title: UISearchBar is disappearing after single tap on search bar
body: <p>I have searched all other questions about <code>UISearchBar</code> and nothing seems to answer my issue. I have a navigation view at the top and a tableview with a <code>UISearchBar</code>. When I tap on the search bar, the <code>tableview</code> gets darkened, the keyboard comes up, both as they should, but the <code>uisearchbar</code> disappears. If I tap on the darkened out tableview, the keyboard gets dismissed, the darkeness goes away, and the UISearchBar reappears. Any idea why it is disappearing?</p>
  
  <p>Here's some code which is inside a class which extends UITableViewController:</p>
  
  <pre><code>searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 44)];
  searchBar.delegate = self;
  searchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self];
  searchDisplayController.delegate = self;
  searchDisplayController.searchResultsDataSource = self;
  searchDisplayController.searchResultsDelegate = self;
  //[self.tableView insertSubview:self.searchDisplayController.searchBar aboveSubview:self.tableView];
  self.tableView.tableHeaderView = searchDisplayController.searchBar;
  </code></pre>
  
  <p>In my .h file, I adopt these protocals: ` but I do not implement any of their methods except:</p>
  
  <pre><code>- (void)searchDisplayController:(UISearchDisplayController *)controller didLoadSearchResultsTableView:(UITableView *)tableView
  {
  [tableView registerClass:[EmailCell class] forCellReuseIdentifier:mailCellIdentifier];
  }
  </code></pre>
  
  <p>EDITED: </p>
  
  <p>I purposely moved the tableview down further, so that there is whitespace between the top navigation view and the tableview, and found that the searchbar wasn't disappearing, it was moving further up on the screen when tapping the UISearchBar, occupying the whitespace that I added in. Any ideas why?</p>