I have a search bar and a search display controller with the associated methods implemented. In my xib
, I have a text field above this search bar. I want the table view that appears to appear below my search bar and not to cover the search bar or the text field above it.
I have tried this:
self.searchDisplayController.searchResultsTableView.frame = CGRectMake(0, 247, 320, 400);
But this doesn't seem to have any effect. How do I set the UITableView
position?
OK - with doing this -
- (void)searchDisplayController:(UISearchDisplayController *)controller didShowSearchResultsTableView:(UITableView *)tableView {
tableView.frame = CGRectMake(0, 200, 320, 400);
}
The table is appearing below the search bar, but for some reason I cannot click the text field above. I think that is happening because said field is still being covered by the table view and the reason I think this is because when I click on the search bar and begin typing a grey area appears that covers everything.