Commit 7c0ad812 authored by David黄金龙's avatar David黄金龙

导航栏 title 优化

parent 5d496a6b
......@@ -329,13 +329,18 @@ extension YHH5WebViewVC {
}
override class func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
}
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
if isShowRightShareItemFlag {
addRightItems()
}
if let title = webview.title,title.isEmpty == false {
navTitle = title
gk_navTitle = navTitle
}
}
func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment