Question
How do I set the icon that appears on the iPhone for the web sites I create?
Answer
See the Specifying a Webpage Icon for Web Clip section of the Configuring Web Applications page of the Safari Web Content Guide in the Safari Reference Library...
< br > via < a class="StackLink" href=" http://stackoverflow.com/questions/1505/" >How do I give my web sites an icon for iPhone?< /a>Specifying a Webpage Icon for Web Clip
iPhone OS Note: The Web Clip feature is available in iPhone OS 1.1.3 and later. The
apple-touch-icon-precomposed.pngfilename is available in iPhone OS 2.0 and later.You may want users to be able to add your web application or webpage link to the Home screen. These links, represented by an icon, are called Web Clips. Follow these simple steps to specify an icon to represent your web application or webpage on iPhone OS.
To specify an icon for the entire website (every page on the website), place an icon file in PNG format in the root document folder called
apple-touch-icon.pngorapple-touch-icon-precomposed.png. If you useapple-touch-icon-precomposed.pngas the filename, Safari on iPhone OS won’t add any effects to the icon.To specify an icon for a single webpage or replace the website icon with a webpage-specific icon, add a link element to the webpage, as in:
<link rel="apple-touch-icon" href="/custom_icon.png"/>
In the above example, replacecustom_icon.pngwith your icon filename. If you don’t want Safari on iPhone OS to add any effects to the icon, replaceapple-touch-iconwithapple-touch-icon-precomposed.See "Create an Icon for Your Web Application or Webpage" in iPhone Human Interface Guidelines for Web Applications for webpage icon metrics.
0 comments:
Post a Comment