Android'den iPhone'a kodlamayı dönüştürüyorum, aşağıda kod, Android webview'da javascript'ten "jb" sesini dinliyor. Kodu iPhone'da nasıl uygularım?iPhone webview ile Javascript arayüzü
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();
}
}
}
iOS'ta ulaşmanın herhangi bir yolunu buldunuz mu? IOS'ta JavascriptInterface alternatif? – harshit2811