title: Dismiss Popover from SearchDisplayController
body: <p>I programmed a SearchBar but no ot in the interface builder b&lt; dragging the search to the tableView. The SearchResult was shown in an other TabelView. The search works great. But every time I search it shows me this SearchResult Popover. Can I delete this Popover?</p>
  
  <p>[<code>SetShowsSearchResultsButton self.searchDisplayController.searchBar: NO];</code> 
  It also does not work</p>
  
  <p>here is some code</p>
  
  <pre><code>- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
  {
      [appDelegate.searchSource removeAllObjects];
      if (0  == [searchString length]) {
          NSLog(@"LEER");
          appDelegate.gefunden=NO;
          [appDelegate.rootViewController.tableView.tableView reloadData];
          [SearchBar1 resignFirstResponder];
      }
      for (NSArray *myPoi in appDelegate.poiList)
      {
          NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(SELF contains[c] %@)", searchString];
          BOOL resultName = [predicate evaluateWithObject:[myPoi valueForKey:@"name"]];
          if (resultName) {
              appDelegate.gefunden = YES;
              [appDelegate.searchSource addObject:myPoi];
              [appDelegate.rootViewController.tableView.tableView reloadData];
              [self.searchDisplayController setActive:NO animated:YES];
              [self.SearchBar1 becomeFirstResponder];
          }
      }
      return YES;
  }
  </code></pre>
  
  <p>and in viewdidload</p>
  
  <pre><code>self.searchDisplayController.searchResultsDataSource = appDelegate.rootViewController.tableView.tableView.dataSource;
  </code></pre>
  
  <p>Thanks</p>