iphone - NSURL 连接错误

标签 iphone objective-c nsurlconnection

什么是“Error Domain=NSURLErrorDomain Code=-1020 UserInfo=0x1694a0”操作无法完成。 (NSURLErrorDomain 错误 -1020。)""由于 ??

最佳答案

您从 NSURLConnection 获得的错误代码在 NSURLError.hCFNetworkErrors.h 以及 this Apple documentation 中.看起来 -1020 是 kCFURLErrorDataNotAllowed,它表示:

"The connection failed because data use is currently not allowed on the device."

关于iphone - NSURL 连接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2720239/

相关文章:

iphone - UITableViewCell背景(图案)

iphone - 获取包含在 NSString 中的文件的扩展名

objective-c - 无法在运行时在工作表中编辑 NSTextField

ios5 - 在 iOS 5 上使用 libcurl 作为 NSURLConnection 的替代品

swift - 如何使用 XCTest 对离线场景进行单元测试

ios - UIView --> 不可见 View 的 UIImage?

iphone - 通过仪器跟踪 "message sent to deallocated instance"

javascript - UIButton 可以用来在 UIWebView 中执行超链接单击吗?

iphone - iPhone 上未收到服务器响应

iphone - Apple 的开发者证书和配置文件