iOS Question Method not found: stringByEvaluatingJavaScriptFromString:, target: <WKWebView: 0x10282d400

MitchBu

Well-Known Member
Licensed User
Longtime User
I am trying to implement the method to inject Javascript posted by Erel here:


More specifically, the post from @moster67:

B4X:
Dim no As NativeObject = WebView1
Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title")))

And I get this error:
Method not found: stringByEvaluatingJavaScriptFromString:, target: <WKWebView: 0x10282d400; frame = (0 0; 1027.96 649.159); layer = <CALayer: 0x282be4ee0>>

Please help. Thank you in advance.
 
Top