As long as your delegate is configured correctly, you can return any data set that you want.
self.searchResults = @[@"some stuff", @"some more stuff", @"and so on..."];
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
if (tableView == [[self searchDisplayController] searchResultsTableView]) {
return [self.searchResults count];
}
else {
return [self.data count];
}
}
source
share