gpt4 book ai didi

ios - iOS 中的 NSURLErrorCancelled = -999 是什么?

转载 作者:可可西里 更新时间:2023-11-01 03:38:08 26 4
gpt4 key购买 nike

谁能描述一下“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 - iOS 中的 NSURLErrorCancelled = -999 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25390073/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com