iOS中的NSURLErrorCancelled = -999是什么?

iOS中的NSURLErrorCancelled = -999是什么?,第1张

概述有人可以描述如何使用“NSURLErrorCancelled = -999”. 来自Apple文档: NSURLErrorCancelled (-999) “Returned when an asynchronous load is canceled. A Web Kit framework delegate will receive this error when it performs a c 有人可以描述如何使用“NSURLErrorCancelled = -999”.解决方法 来自Apple文档:

NSURLErrorCancelled (-999)

“Returned when an asynchronous load is canceled. A Web Kit framework
delegate will receive this error when it performs a cancel
operation on a loading resource. Note that an NSURLConnection or
NSURLDownload delegate will not receive this error if the download is
canceled.”

你可以做的最好的事情就是忽略这个错误

if ([error code] != NSURLErrorCancelled) {   //here you'll get a real error }
总结

以上是内存溢出为你收集整理的iOS中的NSURLErrorCancelled = -999是什么?全部内容,希望文章能够帮你解决iOS中的NSURLErrorCancelled = -999是什么?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1098350.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存