0

添加时出现错误

-(void) statement.

" use of undeclared identifier "filterContentForSearchText"

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

    searchResults = [recipes filteredArrayUsingPredicate:resultPredicate];
}

搜索结束

4

1 回答 1

1

如果您的数组不包含此类数据,请查看此示例,向我们展示您的数据或数组处理,您的数组中包含哪种类型的数据。NSPredicate

于 2012-10-30T17:50:52.917 回答