I thought searchDisplayController has a separate table, so I assume that you will need to resize it.
Something along the lines: <yourSearchViewController>.view.frame =self.tableView.frame;
or if you do not have it as a class variable, in a method that receives it as an argument, for example:
-(void)searchDisplayController:(UISearchDisplayController *)controller didShowSearchResultsTableView:(UITableView *)tableView { controller.view.frame = self.tableView.frame; tableView.backgroundColor = [UIColor colorWithRed:243.0/255.0 green:236.0/255.0 blue:212.0/255.0 alpha:1]; }
Alternatively, you may want to subclass it and change its view properties locally.
Hope this helps!
Wolfert
source share