现在的位置: 首页 > 综合 > 正文

uiwebview didFailLoadWithError -999 error code

2013年10月20日 ⁄ 综合 ⁄ 共 304字 ⁄ 字号 评论关闭

在uiwebview里,如果load一个url还没结束就立即load另一个url,那么就会callback didFailLoadWithError method,error code is -999。solution is 在didFailLoadWithError 里添加下列code

if ([error code] != NSURLErrorCancelled) {
//show error alert, etc.
}

ref link:

http://stackoverflow.com/questions/1024748/how-do-i-fix-nsurlerrordomain-error-999-in-iphone-3-0-os

抱歉!评论已关闭.