Sunday, August 15, 2010

iPhone Web Application


  • You can specify a custom icon for the home screen bookmark using a <link> element, like so:
    <link rel="apple-touch-icon" href="custom_icon.png" />

    If you don’t want iPhone to automatically apply the “shine” effect on your icon, use the following instead:


    <link rel="apple-touch-icon-precomposed" href="custom_icon.png" />

  • Since iPhone OS 3.0, offline web apps can have custom splash screens, as a native app! Simply add a link element to your web page:
    <link rel="apple-touch-startup-image" href="/splash.png" />