我想保存JSON响应本地核心数据为我的应用程序。我下面以下实现此: https://stackoverflow.com/a/2363996/127036JSON核心数据
这里是我的代码:
NSString *objectName = @"Post";
NSManagedObject *managedObject = [NSEntityDescription insertNewObjectForEntityForName:objectName inManagedObjectContext:moc];
[managedObject setValuesForKeysWithDictionary:structureDictionary];
编译器返回以下错误:
-[__NSCFDictionary entity]: unrecognized selector sent to instance 0x6dc6fa0
虽然试图执行:
setValuesForKeysWithDictionary
请引导我在正确的方向f ix这个问题。
你的'structureDictionary'里有什么? – iHunter 2012-01-03 20:24:23