Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个 iPhone 应用程序,它需要制作一个只能垂直滚动的 UIwebview(我需要禁用水平滚动),我不能从网站上真正做到这一点,因为这不在我的控制范围内。如何实施?
您可以通过在 HTML 部分中添加以下内容来做到这一点:
<meta name="viewport" content="width=device-width" />
在将文件加载到 Web 视图之前执行此操作或使用stringByEvaluatingJavaScriptFromString:
stringByEvaluatingJavaScriptFromString: