Simple question - how can I get my web app to display at actual size?

Discussion in 'iOS Programming' started by Chuck, Mar 25, 2009.

  1. Chuck macrumors regular

    Joined:
    Jan 3, 2003
    #1
    Hi guys,

    Just wanted to know how to get a web app to display at "actual pixels" on the iPhone. I just designed a page that is the right dimensions for the iPhone screen but when I go there, the iPhone reduces it down really small! There's nothing else on the page except this image that is 318 x 431px.

    Thanks in advance.
    Chuck.
     
  2. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    Code:
    <meta name=“viewport” content=“width=320, initial-scale=1.0" />
     
  3. Chuck thread starter macrumors regular

    Joined:
    Jan 3, 2003
    #3
    Hmmm, where do I put that? I just tried it in the <head> and it didn't make any difference (after I added the missing inverted commas from the initial scale value that is).

    [edit: Oh, sorry your code was right. I shouldn't have changed it. THANKS!]
     

Share This Page