iphone - Is there a way to pre-populate UISearchDisplayController with results before the user starts typing in the SearchBar? -
After the search bar is active, I would like to show the previous searches immediately, but even if datasource has these values, search display controller The table does not call the viewing methods unless the user starts typing. Is there any way to apply it to UISearchDisplayController?
Unless your representative is installed properly, then whatever data you want to set back can do.
self.searchResults = @ [@ "some stuff", @ "some more stuff", @ "and so on ..."]; - (NSInteger) Table view: (UITableView *) table view numberofrease insaction: (NSInteger) section {if (tableView == [[self searchDisplayController] searchResultsTableView]) {return [self.searchResults count]; } And {returns [self-counting counts]; }}
Comments
Post a Comment