开发者

How can i call Java Script Function form my objective C class

开发者 https://www.devze.com 2023-03-25 21:38 出处:网络
I am displaying a URL in uiwebview, and I\'m getting a list in popover controller, now my requirement is when user will select any item from that popover list then I need to call a JavaScript function

I am displaying a URL in uiwebview, and I'm getting a list in popover controller, now my requirement is when user will select any item from that popover list then I need to call a JavaScript function with parameters which I selected and according to my selection JavaScript function will change URL content.

The co开发者_运维知识库de which is I am trying to call JS function is given below but it is not working for me:

[self.myWebview stringByEvaluatingJavaScriptFromString:@"loadpano(\"panoXML.php?params=panoId=9572|lang=de|parkourId=342\",null,MERGE,BLEND(1));"];

Please provide me any solution for that.

0

精彩评论

暂无评论...
验证码 换一张
取 消