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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -