onJsAlert of android similar in ios -
- below code of android , want same thing in ios(objective-c)
private class mywebchromeclient extends webchromeclient {
    //display alert message in web view     @override     public boolean onjsalert(webview view, string url, string message, jsresult result) {         new alertdialog.builder(view.getcontext())                 .setmessage(message).setcancelable(true).show();         result.confirm();         return true;     }      }  
 
  
Comments
Post a Comment