wendux / DSBridge-IOS

: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

swift集成DSBridge无法在注册的JsApi方法里实现

wushuang1026 opened this issue · comments

开启debug模式后,dsbridge弹出错误提示,提示内容为:Method loading is not invoked, since there is not a implementation for it,大意是方法未被调用,因为它没有实现,但是确实是注册了api,请问楼主这是什么原因呢,android端已经实现了,不知道为什么在swift这里无法实现

请问这个是怎么解决的,我也遇到这个问题了,多谢

swift方法必须设置参数。就算我们定义的方法不需要参数,swift实现的时候也需要设置。