I wrote an HTML5-based iOS web application and everything seems to work fine, but I'm trying to polish it with multiple launch screens. The iPhone / iPod touch works well with PNG 320x460, as shown below:
<link rel="apple-touch-startup-image" href="img/startup_screen-320x460.png" />
I found a lot of documentation saying that boot images for the iPad should, like iPhone / iPod touch, have 20px shaved from a height in order to place a resolution of 768x1004 (portrait) or 1024x748 (landscape) in the status bar, However, in my testing (currently with an iPad running iOS 3.2.2) only the resolution 768x1004 (portrait) works (but itβs wrong - 20 pixels is too narrow - in landscape mode).
I tried the following (a wild guess based on the link functionality of apple-touch-icon ), to no avail:
<link rel="apple-touch-startup-image" href="img/startup_screen-320x460.png" /> <link rel="apple-touch-startup-image" sizes="1024x748" href="img/startup_screen-1024x748.png" /> <link rel="apple-touch-startup-image" sizes="768x1004" href="img/startup_screen-768x1004.png" />
Only an image with a resolution of 768x1004 works if it contains the last link element. If the image with a resolution of 1024x748 is the last, a gray background is displayed instead (but never 768x1004). Thus, it is obvious that apple-touch-startup-image link does not support the sizes attribute.
Is this supported in newer versions of iOS? Is there a way to support multiple boot images? Should I create a boot image of 1024x768? If so, will it be reduced for iPhone / iPod touch? Or, should I just give up and not have a boot image for the iPad?
ios web-applications mobile-safari ipad
morgant Jan 14 '11 at 3:23 2011-01-14 03:23
source share