【发布时间】:2012-04-05 22:47:20
【问题描述】:
我正在使用 RestKit 发布到 uri
NSString* path = [NSString stringWithFormat:@"myPathHere"];
NSDictionary *params = [NSDictionary dictionaryWithKeysAndObjects:@"rating",[rating stringValue], nil];
[[RKObjectManager sharedManager].client post:path params:params delegate:self];
服务器将响应我的 managedObject“项目”的更新版本。
我该如何映射这个项目。我是否使用以下委托方法?
- (void)request:(RKRequest *)request didLoadResponse:(RKResponse *)response{}
我知道从这里我可以获取响应 JSON 值,但是如何将其更改为映射对象?
非常感谢任何帮助。
谢谢!
【问题讨论】:
标签: objective-c ios mapping restkit