184
rated 0 times
[
190]
[
6]
/ answers: 1 / hits: 41410
/ 9 Years ago, wed, march 25, 2015, 12:00:00
In WKWebView we can call ObjectiveC/swift code using webkit message handlers
eg: webkit.messageHandlers.<handler>.pushMessage(message)
It works well for simple javascript functions without parameters. But;
- Is it possible to call native code with JS callback function as parameters?
- Is it possible to return a value to JS function from native code?
More From » ios