Sunday, 11 August 2013

Restkit progress information for POST

Restkit progress information for POST

I'm using RestKit to interact with my webserver api (GET\POST\etc.). How
can I get the progress information of a specific call? (bytesSent \
totalBytes)
Let's take this piece of code for example:
[[RKObjectManager sharedManager] postObject:object path:kResourcePath
parameters:nil
success:^(RKObjectRequestOperation *operation, RKMappingResult
*mappingResult) {...}
failure:^(RKObjectRequestOperation *operation, NSError *error) {...}];
I have a clue with RKManagedObjectRequestOperation, but I don't know how
to create an operation to match the above
postObject:path:parameters:success:failure: method.
Any advise?

No comments:

Post a Comment