iOS: RestKit loadObject & send params

Posted by Alon Amir on Stack Overflow See other posts from Stack Overflow or by Alon Amir
Published on 2012-02-22T21:07:16Z Indexed on 2012/06/28 3:16 UTC
Read the original article Hit count: 239

Filed under:
|
|
|

using loadObjectAtResourcePath, on GET method, doesn't include my parameters on the requests.

for example, i send:

[RKObjectManager objectManagerWithBaseURL:@"http://something/ws"];
    [[RKObjectManager sharedManager] loadObjectsAtResourcePath:@"/res" delegate:self block:^(RKObjectLoader *loader) {
        NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
                              @"val", @"param1",
                              nil];
        loader.params = [RKParams paramsWithDictionary:dict];
    }];

the final url request doesn't include the "?param1=val" part - why is that?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios