0

我正在使用 restkit 发出返回 JSON 数据的请求。它在 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.

有人帮忙吗?

4

0 回答 0