[iOS] WKNavigationDelegate
WKNavigationDelgate
웹뷰의 탐색(navigation) 변경사항을 수락 또는 거부하고 탐색 요청 진행 상황을 추적하는 방법
WKNavigationDelegate | Apple Developer Documentation
Methods for accepting or rejecting navigation changes, and for tracking the progress of navigation requests.
developer.apple.com
webView(_:decidePolicyFor:preferences:decisionHandler:)
웹 페이지의 탐색 허용 여부를 결정할 때
webView(_:decidePolicyFor:preferences:decisionHandler:) | Apple Developer Documentation
Asks the delegate for permission to navigate to new content based on the specified preferences and action information.
developer.apple.com
webView(_:didStartProvisionNavigation:)
웹뷰가 탐색을 시작할 때
webView(_:didStartProvisionalNavigation:) | Apple Developer Documentation
Tells the delegate that navigation from the main frame has started.
developer.apple.com
webView(_:didCommit:)
웹뷰가 콘텐츠를 받기 시작할 때
webView(_:didCommit:) | Apple Developer Documentation
Tells the delegate that the web view has started to receive content for the main frame.
developer.apple.com
webView(_:didFinish:)
웹뷰가 콘텐츠를 받는 것을 완료했을 때
webView(_:didFinish:) | Apple Developer Documentation
Tells the delegate that navigation is complete.
developer.apple.com
webView(_:didFail:withError:)
웹뷰가 콘텐츠를 받는 것을 실패하였을 때
webView(_:didFail:withError:) | Apple Developer Documentation
Tells the delegate that an error occurred during navigation.
developer.apple.com
출처
[iOS] 웹뷰의 델리게이트 메서드 ( WKNavigationDelegate & WKUIDelegate) - HoonIOS
안녕하세요, HoonIOS입니다. :) 저번에는 WKWebView의 기본적인 메서드에 대해 포스팅을 했습니다. 이번에는 기본 메서드가 아닌 델리게이트 메서드에 대해 포스팅을 해보려고 하는데요. WKWebView의 델
boidevelop.tistory.com
'iOS > Swift' 카테고리의 다른 글
[iOS] WKScriptMessageHandler (0) | 2024.03.16 |
---|---|
[iOS] WKUIDelegate (0) | 2024.03.16 |
[Swift] Calendar (0) | 2024.03.09 |
[iOS] WKWebView (0) | 2024.03.03 |
[Swift] Mirror (1) | 2024.02.18 |