相关疑难解决方法(0)

RestKit:请求失败时获取HTTP状态代码

我在iOS应用程序中使用RestKit,我需要对某些HTTP错误代码进行特殊处理.如何在内部检查响应HTTP状态代码request:didFailLoadWithError:userInfo字典中是否有一些条目NSError

我在RKRequestDelegate文档中找不到任何内容.

这是委托方法的接口:

- (void)request:(RKRequest *)request didFailLoadWithError:(NSError *)error
Run Code Online (Sandbox Code Playgroud)

iphone http ios restkit

17
推荐指数
1
解决办法
7973
查看次数

标签 统计

http ×1

ios ×1

iphone ×1

restkit ×1