I was using this method to POST my objects, but it’s been deprecated:
- (void)postObject:(id<NSObject>)object mapResponseWith:(RKObjectMapping *)objectMapping delegate:(id<RKObjectLoaderDelegate>)delegate
What should I now use instead? How do I configure the RKObjectMapping of my response?
The selector has been deprecated in favor of
- (void)postObject:(id<NSObject>)object usingBlock:(RKObjectLoaderBlock)block– thus you use the block to configure aRKObjectLoaderinstance. Example follows how to set an objectMapping (mapping used to map the response) in the block: