问题
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