简体   繁体   English

在不禁用用户选择的情况下禁用UIWebview上的缩放/镜头

[英]Disable zoom/lens on UIWebview without disabling user selection

I like to disable the zoom/lens on uiwebview. 我想在uiwebview上禁用缩放/镜头。 But, I do not want any of the user selection to get disabled in the process ie I cannot use the following in my css. 但是,我不希望任何用户选择在此过程中被禁用,即我不能在CSS中使用以下内容。

-webkit-user-select:none

If you have access to the UIWebView you can do the following: '[myWebView setScalesPageToFit:NO]' 如果您有权访问UIWebView,则可以执行以下操作:'[myWebView setScalesPageToFit:NO]'

This will disable zooming in the web view. 这将禁用Web视图中的缩放。

source 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM