wkwebview(3)
-
WKWebView
WKNavigation Delegate 메인 프레임 탐색의 진행 상황을 추적하고 결정하는 방법 메인 프레임 및 서브프레임 탐색에 대한 정책 네비게이션 시작 # 콘텐츠가 메인 프레임에 도착하기 시작할 때 호출 /*! @abstract Invoked when content starts arriving for the main frame. @param webView The web view invoking the delegate method. @param navigation The navigation. */ - (void)webView:(WKWebView *)webView didCommitNavigation:(null_unspecified WKNavigation *)navigation; # 메인 프레임 탐색이 시..
2022.09.15 -
UIWebView, WKNavigation Delegate 대칭표
UIWebView - UIWebViewDelegate WKWebView - WKNavigationDelegate webView:shouldStartLoadWithRequest:navigationType: webView:decidePolicyForNavigationAction:decisionHandler: webViewDidStartLoad: webView:didCommitNavigation: webViewDidFinishLoad: webView:didFinishNavigation: webView:didFailLoadWithError: webView:didFailNavigation:withError: webView:didFailProvisionalNavigation:withError:
2020.11.04 -
[ERROR] decidePolicyForNavigationAction was not called
decidePolicyForNavigationAction 함수만 선언하고 decisionHandler을 호출하지 않아서 발생 # Swift func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) { decisionHandler(.allow) } # Objective-C - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(v..
2020.11.03