Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DWKWebView不触发WKNavigationDelegate和WKUIDelegate方法 #29

Closed
ouhuiju opened this issue Feb 26, 2018 · 1 comment
Closed

DWKWebView不触发WKNavigationDelegate和WKUIDelegate方法 #29

ouhuiju opened this issue Feb 26, 2018 · 1 comment

Comments

@ouhuiju
Copy link

ouhuiju commented Feb 26, 2018

之前在WVJSB中也遇到过类似问题,不过可以通过调整顺序来让其调用WKWebView的代理方法,不过在DSBridge中失效。。

请问有什么好的解决办法吗?

@wendux wendux closed this as completed in 4cc9bf4 Feb 26, 2018
@wendux
Copy link
Owner

wendux commented Feb 26, 2018

首先如果您使用的事3.0,请先升级到3.0.2

  1. WKNavigationDelegate 我在本地测试是触发的,请检查是否设置了dwebview.navigationDelegate .
  2. WKUIDelegate 需要设置 dwebview.DSUIDelegate, DSUIDelegateUIDelegate的代理属性,详情请参考文档。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants