:earth_asia: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
pikacode opened this issue 4 years ago · comments
因为您已经使用了自定义的 webview,可以通过重写 UIDelegate 的 setter 方法来实现同样的目的,而不需要暴露另外的 DSUIDelegate 让开发者使用
-(void)setUIDelegate:(id <WKUIDelegate>)delegate{ //这里对内部的 _DSUIDelegate 赋值,而 UIDelegate 仍等于 self _DSUIDelegate = delegate; }