As i see in all RestKit documentations, didWSRequestLoadObjects
delegate function is used to handle service response.
The problem is, if I have a different requests (postObject
) in my view controller i have to check response type in didWSRequestLoadObjects
for each request.
Is there a way to register a function before each postObject
and get each response in different function?
Which version of RestKit are you using? On the last release it is highly encouraged to use blocks instead of a
loadObjects delegate function
. For example, theRKObjectManager postObject
method has asuccess
anderror
parameters which receives a block.Here is an example of use: