Problem with UIWebView

Discussion in 'iOS Programming' started by pankaj21c, Jul 23, 2009.

  1. pankaj21c macrumors newbie

    Joined:
    Apr 15, 2009
    #1
    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
     
  2. fishkorp macrumors 68020

    fishkorp

    Joined:
    Apr 10, 2006
    Location:
    Ellicott City, MD
    #2
    You need to use meta tags for view port and scaling in your actual web page.
     
  3. pankaj21c thread starter macrumors newbie

    Joined:
    Apr 15, 2009
    #3
    Hi,
    thanks 4 rply, can u please send me sample code..
     
  4. Troglodyte macrumors member

    Joined:
    Jul 2, 2009
  5. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #5
    You can use:
    Code:
    <meta name="apple-mobile-web-app-capable" content="yes" />
    OR

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

Share This Page