Disabling Zoom in UIWebView
January 08, 2010 Filed in: iPhone
In an earlier post, I discussed various behavior differences of different document types within UIWebView. One of the uglier aspects of UIWebView is the extra margin that can appear in RTF or HTML pages after you’ve zoomed and then rotate the device.
Turns out that Apple has some iPhone specific META tags that can disable the zoom.
Add:
I’ll be experimenting with this for my help page(s).
Turns out that Apple has some iPhone specific META tags that can disable the zoom.
Add:
<meta name = "viewport" content = "user-scalable = no">into your HEAD section of your HTML, et voila, no more user zooming.
I’ll be experimenting with this for my help page(s).