Created
June 10, 2013 17:22
-
-
Save aliHafizji/5750593 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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