Android's addJavascriptInterface equivalent in iOS

Solutions Collect From Internet About “Android's addJavascriptInterface equivalent in iOS”

UIWebView on iOS doesn’t have methods to add interface to DOM.
But you still can talk to your code from javascript assigning something to window.location and handling that request in webView:shouldStartLoadWithRequest:navigationType: delegate method.