I know this is possible in Java with Javascript handler :
graphView.addJavascriptInterface(handler, "javahandler");
graphView.loadUrl("file:///android_asset/html/show_data_from_file.html");
JSONObject json = new JSONObject();
json.put("data", jsonArray);
json.put("label","labelString");
handler.json = json;
Within the javascript page, the "javahandler" would have "json" object, which I can get the data array and the label to display on the page.
Is there something similar for iOS? I'm very new to web programming with iOs, and would appreciate your help!