Comment1####################################
I was able to find the answer here: http://www.iphonedevsdk.com/forum/iphone-sdk-development/6280-uiwebview-didfailloadwitherror-how-get-errors-code-list.html
This thread contained this description for this error: "This error may occur if an another request is made before the previous request of WebView is completed..."
I worked around this by ignoring this error and letting the webview continue to load.
if ([error code] != -999) { //show error alert, etc. }
Comment2####################################
"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."
For my situation (and probably yours) this can be ignored:
if
([
error code
]
==
NSURLErrorCancelled
)
return
;
// Ignore this error
本文讨论了UIWebView加载过程中出现特定错误的原因及解决方法。对于错误代码-999以外的情况,建议忽略该错误并允许WebView继续加载。同时,对于因取消异步加载而产生的错误,也推荐采取忽略策略。
7825

被折叠的 条评论
为什么被折叠?



