Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed.

栏目: 编程语言 · IOS · 发布时间: 6年前

内容简介:Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed.

IOS 请求异常

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{    
    //一个页面没有被完全加载之前收到下一个请求,此时迅速会出现此error,error=-999
    //此时可能已经加载完成,则忽略此error,继续进行加载。
    //http://stackoverflow.com/questions/1024748/how-do-i-fix-nsurlerrordomain-error-999-in-iphone-3-0-os
    if([error code] == NSURLErrorCancelled)
    {
        return; 
    }
 }

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Web ReDesign 2.0

Web ReDesign 2.0

Kelly Goto、Emily Cotler / Peachpit Press / 2004-12-10 / USD 45.00

If anything, this volume's premise--that the business of Web design is one of constant change-has only proven truer over time. So much so, in fact, that the 12-month design cycles cited in the last ed......一起来看看 《Web ReDesign 2.0》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试