<legend id='3KHMl'><style id='3KHMl'><dir id='3KHMl'><q id='3KHMl'></q></dir></style></legend>
      <bdo id='3KHMl'></bdo><ul id='3KHMl'></ul>

      <small id='3KHMl'></small><noframes id='3KHMl'>

    1. <tfoot id='3KHMl'></tfoot>
    2. <i id='3KHMl'><tr id='3KHMl'><dt id='3KHMl'><q id='3KHMl'><span id='3KHMl'><b id='3KHMl'><form id='3KHMl'><ins id='3KHMl'></ins><ul id='3KHMl'></ul><sub id='3KHMl'></sub></form><legend id='3KHMl'></legend><bdo id='3KHMl'><pre id='3KHMl'><center id='3KHMl'></center></pre></bdo></b><th id='3KHMl'></th></span></q></dt></tr></i><div id='3KHMl'><tfoot id='3KHMl'></tfoot><dl id='3KHMl'><fieldset id='3KHMl'></fieldset></dl></div>

      UIWebView 将 Objective C 暴露给 JavaScript

      时间:2023-10-22

      <small id='u98tp'></small><noframes id='u98tp'>

      <legend id='u98tp'><style id='u98tp'><dir id='u98tp'><q id='u98tp'></q></dir></style></legend>

      1. <tfoot id='u98tp'></tfoot>
      2. <i id='u98tp'><tr id='u98tp'><dt id='u98tp'><q id='u98tp'><span id='u98tp'><b id='u98tp'><form id='u98tp'><ins id='u98tp'></ins><ul id='u98tp'></ul><sub id='u98tp'></sub></form><legend id='u98tp'></legend><bdo id='u98tp'><pre id='u98tp'><center id='u98tp'></center></pre></bdo></b><th id='u98tp'></th></span></q></dt></tr></i><div id='u98tp'><tfoot id='u98tp'></tfoot><dl id='u98tp'><fieldset id='u98tp'></fieldset></dl></div>

            • <bdo id='u98tp'></bdo><ul id='u98tp'></ul>
                  <tbody id='u98tp'></tbody>
                本文介绍了UIWebView 将 Objective C 暴露给 JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                在使用 UIWebView 时,如果使用 iPhone SDK,我将如何在 JavaScript 中公开 Objective-C 方法?

                How would I expose an Objective-C method within JavaScript when using the iPhone SDK when using the UIWebView?

                任何帮助将不胜感激!

                推荐答案

                最好的方法是通过自定义链接,然后使用 UIWebView 委托方法 -webView:shouldStartLoadWithRequest:navigationType: 捕获请求.当您看到包含您的链接的请求通过时,您就知道您的操作已被触发.

                The best way to do this would be through a custom link, and then use the UIWebView delegate method -webView:shouldStartLoadWithRequest:navigationType: to trap requests. When you see a request come through with your link in it, you know your action has been triggered.

                这篇关于UIWebView 将 Objective C 暴露给 JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:使用 JavaScript 的 UIWebView CSS 注入 下一篇:如何在 Xcode 中向 UIWebView 添加外部样式表?

                相关文章

                  • <bdo id='sjTMH'></bdo><ul id='sjTMH'></ul>

                  <small id='sjTMH'></small><noframes id='sjTMH'>

                  <legend id='sjTMH'><style id='sjTMH'><dir id='sjTMH'><q id='sjTMH'></q></dir></style></legend>

                    <i id='sjTMH'><tr id='sjTMH'><dt id='sjTMH'><q id='sjTMH'><span id='sjTMH'><b id='sjTMH'><form id='sjTMH'><ins id='sjTMH'></ins><ul id='sjTMH'></ul><sub id='sjTMH'></sub></form><legend id='sjTMH'></legend><bdo id='sjTMH'><pre id='sjTMH'><center id='sjTMH'></center></pre></bdo></b><th id='sjTMH'></th></span></q></dt></tr></i><div id='sjTMH'><tfoot id='sjTMH'></tfoot><dl id='sjTMH'><fieldset id='sjTMH'></fieldset></dl></div>
                    <tfoot id='sjTMH'></tfoot>