ios-获取url connection error Posted on 2018-08-24 18:09 12345678- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation withError:(NSError *)error{ NSLog(@"connection didFailWithError"); if(error.code==-1009){ do something... }}