PDA

View Full Version : Problem with UIWebView




pankaj21c
Jul 23, 2009, 07:09 AM
Hi,
I am developing an application in which i just need to display a web page to
view that is created using asp. I am able to display the web page but it displays in very small size and once i double click on webview is resizes to the actual size so what i need is what is happening after double clicking it should be automatically fit to the actual webview size.

Thanks



fishkorp
Jul 23, 2009, 08:09 AM
You need to use meta tags for view port and scaling in your actual web page.

pankaj21c
Jul 24, 2009, 07:12 AM
You need to use meta tags for view port and scaling in your actual web page.

Hi,
thanks 4 rply, can u please send me sample code..

Troglodyte
Jul 24, 2009, 08:29 AM
Try Google - 'meta tags iphone'

KoolStar
Jul 24, 2009, 09:02 AM
You can use:
<meta name="apple-mobile-web-app-capable" content="yes" />

OR

<meta name="viewport" content="width = 320" />
<meta name="viewport" content="width=device-width" />