Restkit not work on iOS 7

孤人 提交于 2019-12-11 20:48:02

问题


I'm using the restkit to make the request that returns JSON Data. It worked fine on iOS 6 but when i built the app on XCode 5 + iOS 7, it cannot get the response data.

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

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

}];

Here's the error log:

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.

Anyone helps?

来源:https://stackoverflow.com/questions/18378717/restkit-not-work-on-ios-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!