How to disable up/down pan in UIWebView?
I want to have my web view pannable left and right but not up and down. Is that possible开发者_运维百科?
Thanks.
ok, well wrap your one line of html like this:
<html>
<head>
<meta name = "viewport" content = "height = device-height, user-scalable = no, width = WIDTH">
</head>
<body>
...YOUR HTML
</body>
</html>
Replace width with the width of your content, and see how it works.
精彩评论