« first day (225 days earlier)      last day (792 days later) » 

18:04
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"ShowCellIdentifier";
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];

NSDictionary * show;
if (tableView == self.tableView) {
show = [self.content objectAtIndex:indexPath.row];
} else {
show = [self.searchResults objectAtIndex:indexPath.row];
}

[[cell textLabel] setText:[show objectForKey:@"SeriesName"]];
This is format of object in dictionary: admin = ;
approved = ;
business = "";
category = ;
description = "";
distance = "";
email = "";
favs = ;
id = ;
image1 = "";
lat = "";
location = "";
lon = "";
name = "";
password = "";
rating = "";
telephone = "";
website = "";
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString {
[self filterProductsForTerm:searchString];
return YES;
}


- (void)filterProductsForTerm:(NSString *)term {
NSLog(@"Search: %@", term);
//[self.searchResults removeAllObjects];
[self fetchShowsWithName:term forSearch:YES];
}
- (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope
{
NSPredicate *resultPredicate = [NSPredicate predicateWithFormat:@"SELF contains[cd] %@", searchText];

searchResults = [listings filteredArrayUsingPredicate:resultPredicate];
}

-(BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
{
[self filterContentForSearchText:searchString scope:[[self.searchDisplayController.searchBar scopeButtonTitles] objectAtIndex:[self.searchDisplayController.searchBar selectedScopeButtonIndex]]];

« first day (225 days earlier)      last day (792 days later) »