Restkit无法在iOS 7上运行

时间:2013-08-22 11:07:16

标签: ios7 restkit-0.20

我正在使用restkit发出返回JSON Data的请求。它在iOS 6上运行良好,但是当我在XCode 5 + iOS 7上构建应用程序时,它无法获取响应数据。

[objectManager getObjectsAtPath:path parameters:nil success:^(RKObjectRequestOperation *
     operation, RKMappingResult *mappingResult){

} failure:^(RKObjectRequestOperation * operation, NSError *error) {
    //always run to this block

}];

这是错误日志:

E restkit.network:RKObjectRequestOperation.m:575 Object request 
failed: Underlying HTTP     request operation failed with error: 
Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost.

有人帮忙吗?

0 个答案:

没有答案