Skip to content

Instantly share code, notes, and snippets.

@aliHafizji
Created June 10, 2013 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aliHafizji/5750593 to your computer and use it in GitHub Desktop.
Save aliHafizji/5750593 to your computer and use it in GitHub Desktop.
- (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tableView {
[tableView setBackgroundColor:[UIColor whiteColor]];
[tableView setSeparatorColor:kColorDivider];
}
- (void)searchDisplayController:(UISearchDisplayController *)controller didLoadSearchResultsTableView:(UITableView *)tableView {
tableView.rowHeight = self.tableView.rowHeight;
[tableView setTableFooterView:[self footerForTableView]];
}
- (void) searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller {
controller.searchResultsTableView.backgroundView = nil;
controller.searchResultsTableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bkgd-opaque"]];
controller.searchResultsTableView.opaque = YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment