2012-08-02 51 views
11

我sendind对象通过RKObjectManager:我如何可以打印Restkit(IOS)发送的身体

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

的映射和路由已经配置和它的作品成功。它发送一个json和服务器接收请求,但我有一个问题。在IOS方面,我怎样才能打印发送给服务器的json。

+0

你可能想启用日志记录:http://stackoverflow.com/questions/7664892/how-can-i-see-the-communication-of -the-restkit-networkjson-string/7666125#7666125 – mja 2012-08-02 18:19:23

+0

谢谢,这就是我要找的。写作为upvote的答案。 – Warthog 2012-08-02 18:26:20

+2

随时为原始答案投票,没有意义复制它。 – mja 2012-08-02 18:28:13

回答

21

把你的应用程序代理如下:

RKLogConfigureByName("RestKit/Network", RKLogLevelTrace); 
RKLogConfigureByName("RestKit/ObjectMapping", RKLogLevelTrace);