how to use windowScriptObject on the iPhone?

后端 未结 2 610
别那么骄傲
别那么骄傲 2020-12-20 08:36

Greetings!

I was wondering how I could use javascript code on an iPhone application I was developing. this tutorial illustrated how to use windowScriptObjects for Co

相关标签:
2条回答
  • 2020-12-20 09:01

    This functionality is not exposed via a public API.

    0 讨论(0)
  • 2020-12-20 09:09

    Like rpetrich said, this is Non-Public API so the windowScriptObject route might not be the best.

    I did find this link though, which helped me a lot: https://discussions.apple.com/message/7731057?messageID=7731057�

    Basically, if you can keep your interactions between HTML and Objective-C entirely based on the user clicking links ( a href="" ) then all of this can be easily communicated between the two.

    While it would be nice, I agree, to exchange variables and call methods at will, this already gives you a lot to work with. Hope that's useful!

    0 讨论(0)
提交回复
热议问题