无法识别的选择器发送到实例setLanguage

时间:2017-05-23 13:34:12

标签: objective-c core-data unrecognized-selector

帮帮我。我不知道附加什么:S 我只想设置类别语言

- (WSCategory*)importCategory:(NSDictionary*)dictionary withLanguage:(WSLanguage * )language
{
    WSCategory *category = [NSEntityDescription insertNewObjectForEntityForName:@"WSCategory"
                                                       inManagedObjectContext:[CoreDataUtils sharedInstance].managedObjectContext];
    category.id = [dictionary objectForKey:@"id"];
    category.name = [dictionary objectForKey:@"name"];
    category.language = language;
    return category;
}

console error

database entities

0 个答案:

没有答案