Reskit Post Request Mapping Int的简单数组

时间:2015-08-31 03:03:41

标签: ios objective-c restkit

我正在尝试使用int

数组发布请求
  

[1,2,3,..]

我无法弄明白该怎么做。

RKObjectMapping * ordersRequestMapping = [RKObjectMapping requestMapping];
// Missing the right line here
[[RKObjectManager sharedManager] addRequestDescriptor:[RKRequestDescriptor requestDescriptorWithMapping:ordersRequestMapping
                                                                                                objectClass:[NSArray class]
                                                                                                rootKeyPath:nil
                                                                                                     method:RKRequestMethodPOST]];

到目前为止,我知道它需要“fromKeyPath”到nil

0 个答案:

没有答案