我是 RestKit 的新手,我正在使用 RKObjectMapping 调用服务,但它崩溃了,错误日志是
2012-07-20 18:31:58.319 SampleRest[6589:207] -[NSPathStore2 stringByAppendingQueryParameters:]: unrecognized selector sent to instance 0x6d74c20
这是我写的代码:
-(void) callService {
RKObjectMapping *rk = [RKObjectMapping mappingForClass:[vo class]];
[rk mapKeyPath:@"id" toAttribute:@"primaryKey"];
[rk mapKeyPath:@"opposing_team_name" toAttribute:@"opp_team_name"];
RKObjectManager *rkManager = [RKObjectManager objectManagerWithBaseURLString: @"http://hercules.softwaytechnologies.com/sportsapp_v3.0"];
[rkManager loadObjectsAtResourcePath:@"/event_games/get?application_id=1" delegate:self];
}
请帮忙,我做错了吗?
提前致谢