Objective c 尝试使用包含时,NSPredicate崩溃

Objective c 尝试使用包含时,NSPredicate崩溃,objective-c,cocoa-touch,cocoa,core-data,Objective C,Cocoa Touch,Cocoa,Core Data,我想质疑的数据结构。数据是一个可转换的字段,而字段又是一个字典 我要做的是在NSArray*fetchResult中搜索,以检查没有像这样的人有X id。 我这样做的尝试总是以失败告终,强调我的NSPredicate声明中存在问题 我做错了什么?我怎样才能有效地获取我想要的信息 SocialWall *theSocialWall = fetchResult[0]; NSLog(@"%@",theSocialWall.data); NSPredicate * pre

我想质疑的数据结构。数据是一个可转换的字段,而字段又是一个字典

我要做的是在NSArray*fetchResult中搜索,以检查没有像这样的人有X id。 我这样做的尝试总是以失败告终,强调我的NSPredicate声明中存在问题

我做错了什么?我怎样才能有效地获取我想要的信息

SocialWall *theSocialWall = fetchResult[0];
        NSLog(@"%@",theSocialWall.data);
        NSPredicate * predicate = [NSPredicate predicateWithFormat:@"data.likesPeople CONTAINS(c) %@",myUser.userWebID];

        NSArray * result = [fetchResult filteredArrayUsingPredicate:predicate];
        NSLog(@"%@",result);

不包含c,但包含[c]

SocialWall *theSocialWall = fetchResult[0];
        NSLog(@"%@",theSocialWall.data);
        NSPredicate * predicate = [NSPredicate predicateWithFormat:@"data.likesPeople CONTAINS(c) %@",myUser.userWebID];

        NSArray * result = [fetchResult filteredArrayUsingPredicate:predicate];
        NSLog(@"%@",result);
#import <Foundation/Foundation.h>

int main(int argc, char *argv[]) {
@autoreleasepool {
    NSDictionary *d = @{@"key":@"hi my name dominik pich"};
    NSArray *a = @[d];
    NSPredicate * predicate = [NSPredicate predicateWithFormat:@"key CONTAINS[c] %@",@"dominik"];
    NSArray * result = [a filteredArrayUsingPredicate:predicate];
    NSLog(@"%@",result);
}
}