12
當我返回任何HTTP錯誤從我的頁面(目前爲401,但我也試圖與404等)WKWebView抓HTTP錯誤代碼
http://min60.com/__personal/e401.php
的WKWebView的委託回調不返回一個錯誤
- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation withError:(NSError *)error
- (void)webView:(WKWebView *)webView didFailNavigation:(null_unspecified WKNavigation *)navigation withError:(NSError *)error {
如何捕捉這樣的錯誤?