How do they do this - Mobile Site Added to Homescreen Appears as Standalone App

后端 未结 2 453
迷失自我
迷失自我 2021-01-30 01:37

So I\'ve only seen one website do this and I\'m very curious to know how they do it. I\'m using an iPhone 4 with iOS5 by the way.

Go to http://m.funnyordie.com/ (Will Fe

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 02:19

    It's called a Web Clip and if you specify some meta data in your html you can have it appear on the home screen with an icon

    https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html

    To add an icon:

    
    

    To have a startup image:

    
    

    To hide the navigation bar:

    
    

    To change the status bar appearnace:

    
    

提交回复
热议问题