<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

      UIWebView Expose Objective C to JavaScript(UIWebView 将 Objective C 暴露给 JavaScript)

      <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  • <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>

                      <tbody id='sjTMH'></tbody>

                        <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>