Sometimes this error is encountered: Error Domain=nsurlerrordomain code=-999 "The operation couldn ' t be completed.
Here's an explanation: Wang Zhengdong Blog | Error Domain=nsurlerrordomain code=-999 "The operation couldn ' t be completed.
-(void) WebView: (UIWebView *) WebView didfailloadwitherror: (nserror *) error
{
When a page is not fully loaded before receiving the next request, this error,error=-999 quickly occurs
At this point, it may have been loaded, ignore this error and proceed with the load.
Http://stackoverflow.com/questions/1024748/how-do-i-fix-nsurlerrordomain-error-999-in-iphone-3-0-os
if ([error code] = = nsurlerrorcancelled)
{
Return
}
}
According to the phrase "The next request was received before a page was fully loaded," I guessed that the problem occurred in my code: The last request was canceled before the request was made, and the code that canceled the previous request resolved the problem.
Error Domain=nsurlerrordomain code=-999 errors