I want to update data in server which runs in REST API. i am using RESTKIT from ios device. But i could not find how to use PUT in restkit.
I have to send data like key:”user_id” value:”2″ these format. Can anyone please help me to solve this problem.. 🙁
SOKeyValue.h : serialized object used as parameter for your call.
Here’s a simplified code to initialize Restkit :
Now we can implement a service who use PUT. In the object that will implement the call dont forget the restkit delegate RKObjectLoaderDelegate:
In your (.m) :
You can see status code in your trace, and use callback functions :
So i dont have MAC at home, it’s diffcult for help you about the code structure. If you have questions do not hesitate.