Pesquisar no UITableView agrupado

Eu sou novo no desenvolvimento de Objective-C e estou tentando filtrar o conteúdo de um UITableView agrupado.

Isso é o que eu fiz, mas ainda não trabalho:

- (void)filterContentForSearchText:(NSString *)searchText scope:(NSString *)scope
{
     NSPredicate *resultPredicate = [NSPredicate predicateWithFormat:@"SELF CONTAINS[cd] %@", searchText];;


    //activities is table that contains my objects that I display their contents in the table
    self.filteredData = [activities filteredArrayUsingPredicate:resultPredicate];
}

- (BOOL)searchDisplayController:(UISearchDisplayController *)controller
shouldReloadTableForSearchScope:(NSInteger)searchOption
{
    [self filterContentForSearchText:[self.searchDisplayController.searchBar text] scope:
     [[self.searchDisplayController.searchBar scopeButtonTitles]
      objectAtIndex:searchOption]];

    // Return YES to cause the search result table view to be reloaded.
    return YES;
}
//activite is my object that I use to desplay its attribut in table
IPADActivity *activite ;
    if (ThetableView == self.searchDisplayController.searchResultsTableView) {
        activite = [self.filteredData objectAtIndex:indexPath.row];


    } 
    else{
        activite = [[objects
                      objectForKey:[objectsIndex objectAtIndex:indexPath.section]] objectAtIndex:indexPath.row];
    }

Qualquer sugestão por favor

questionAnswers(1)

yourAnswerToTheQuestion