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

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

        <bdo id='rT1zV'></bdo><ul id='rT1zV'></ul>

      iphone uiwebview 程序化缩放

      时间:2023-10-21

        <tbody id='bvoHt'></tbody>

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

          <i id='bvoHt'><tr id='bvoHt'><dt id='bvoHt'><q id='bvoHt'><span id='bvoHt'><b id='bvoHt'><form id='bvoHt'><ins id='bvoHt'></ins><ul id='bvoHt'></ul><sub id='bvoHt'></sub></form><legend id='bvoHt'></legend><bdo id='bvoHt'><pre id='bvoHt'><center id='bvoHt'></center></pre></bdo></b><th id='bvoHt'></th></span></q></dt></tr></i><div id='bvoHt'><tfoot id='bvoHt'></tfoot><dl id='bvoHt'><fieldset id='bvoHt'></fieldset></dl></div>
        1. <tfoot id='bvoHt'></tfoot>
            • <bdo id='bvoHt'></bdo><ul id='bvoHt'></ul>
              <legend id='bvoHt'><style id='bvoHt'><dir id='bvoHt'><q id='bvoHt'></q></dir></style></legend>
                本文介绍了iphone uiwebview 程序化缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在开发一个应用程序,它将 html 文件本地保存在 iPhone 文件系统上,然后在 UIWebView 中加载它们.我希望能够在 UIWebView 上以编程方式缩放或双击,我尝试搜索 javascript 代码,但我只能滚动.

                I'm developing an app that saves html files locally on iPhone file system, then load them in UIWebView. I want to be able to zoom or double tap programmatically on the UIWebView, I tried searching for javascript code, but I could only scroll.

                我也尝试了 webview 转换,但对我来说没有成功.我找到了这个方法

                I also tried the webview transform, but didn't work out for me. I found this method

                sendAction:to:from:forEvent:
                

                http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#jumpTo_26

                在 UIApplication 类中,可以向控件发送操作.

                in the UIApplication class, that can send actions to controls.

                有人知道如何以编程方式将双击动作发送到某个 x,y 上的 UIWebView 吗?

                Does anybody know how to send the double tap action programmatically to a UIWebView on a certain x,y?

                推荐答案

                获取UIWebview的子视图,即UIScrollview

                get the UIWebview's subview which is a UIScrollview

                UIScrollView *sview = [[webview subviews] objectAtIndex:0];
                

                然后使用缩放方法.

                这篇关于iphone uiwebview 程序化缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何在 UIWebView 中播放 youtube 视频静音? 下一篇:如何在 iPhone 上使用 windowScriptObject?

                相关文章

                <tfoot id='AVDw0'></tfoot>
                  <bdo id='AVDw0'></bdo><ul id='AVDw0'></ul>

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

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