title: Javascript interface with iPhone webview
body: <p>I am converting coding from Android to iPhone, below is the code listen to "jb" from javascript in Android webview.  How can I implement the code in iPhone?</p>
  
  <pre><code>  webView.loadUrl(url); 
      webView.setWebViewClient(new AppWebViewClient ());
      webView.addJavascriptInterface(new JavascriptBridge(), "jb");
  
  
  final class JavascriptBridge
      {
          public void callback(String param){
  
              //Generate the returnValue from the bridge
              /*
              String toastValue = param
              Toast toast = Toast.makeText(AppHelp.this, toastValue, Toast.LENGTH_LONG);
              toast.show();
              */
              Log.i(TAG, param);
              if (param.equals("close")) {
                  AppHelp.this.finish();
              }
  
          }
      }
  </code></pre>