我正在使用RestKit将图像上载到我的后端。不幸的是,在成功上传之后,响应没有被映射到请求中使用的对象。 let imageFile = RKManagedObjectStore.defaultStore().mainQueueManagedObjectContext.insertNewObjectForEntityForName("ImageFile") as ImageFile
let r
我正在使用RestKit 0.23。 考虑具有JSON体 {
id: 1,
description: "abc",
images: [
{
id: 1,
... a lot of other attributes that I do not need in fact ...
}
]
}
以下HTTP响
我从服务器获取一个字符串,并且需要将其转换为State对象,该对象是NSManagedObject的子类。变压器工作正常,但我不知道在映射时ManagedObjectContext是什么,所以我得到错误illegal attempt to establish a relationship 'state' between objects in different contexts。 RKEntity