如何在UIScrollView中的UIWebView上启用放大? [英] How can I enable zoom in on UIWebView which inside the UIScrollView?

查看:327
本文介绍了如何在UIScrollView中的UIWebView上启用放大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 UIWebView 其中 UIScrollView (scrollview包含另一个组件)



我试图在 Interface Builder 编程上启用 UIWebView 上的多点触摸仍然无法缩放html,我需要处理放大在 UIScrollView UIWebView

您必须设置scalesPageToFit = YES才能在UIWebView上执行任何缩放和缩放操作


I have a UIWebView which inside a UIScrollView (scrollview contain another component)

I tried to enable multitouch both on Interface Builder or Programmatic on UIWebView but it still cannot zoom for html, do I need to handle both zoom in at the UIScrollView and UIWebView? Or anything I haven't to set?

解决方案

You MUST set scalesPageToFit=YES for any pinching and zooming to work on a UIWebView

这篇关于如何在UIScrollView中的UIWebView上启用放大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆