Blog Categories

Jan 2014
May 2013
Feb 2012
Jun 2011
Mar 2011
Oct 2010
Mar 2010
Feb 2010
Jan 2010
Dec 2009
Mar 2009
Jun 2008
Sep 2007
Aug 2007
Mar 2007
Feb 2007
Dec 2006
Oct 2006

Disabling Zoom in UIWebView

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:
    <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).