Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I print the body sent by Restkit (IOS)

I'm sendind an object through RKObjectManager:

[[RKObjectManager sharedManager] postObject:myObject delegate:delegate];

The mapping and route is already configured and it works successfully. It sends a json and the server receive the request, but I have a question. On IOS side, how can I print the json sent to the server.

like image 583
Naka Avatar asked Aug 02 '12 17:08

Naka


1 Answers

Put the following in your app delegate:

RKLogConfigureByName("RestKit/Network", RKLogLevelTrace); 
RKLogConfigureByName("RestKit/ObjectMapping", RKLogLevelTrace);
like image 116
Resh32 Avatar answered Oct 23 '22 11:10

Resh32