简体   繁体   中英

How do I get value from javascript to iphone/ipad?

I would like to get the value from Javascript which is been evoked on function click in iphone/iPad UIWebView. How can achieve this kindly provide me a snippet of both iPhone code as well as javascript code.Thanks a lot.

in ios7 apple introduced a new frame work named JavaScriptCore and you also can find some use full tutorials

#1

#2

#3

请参阅Apple文档中有关从JavaScript调用Objective-C方法的信息 ,此页面包含代码段以及指向更多文档的链接。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM