At present, most of the enterprise-class iOS applications are based on statements and document approval, and the application of the development trend is bound to the web direction, although native app has unmatched flexibility.
How do you localize a Web page on iOS?
1. Write a native App, and then embed Webbroswer
2. Open the application directly in the browser, and then "add to the main screen" so that the next time you do not need to enter the Web site
Obviously, Method 2 is the most flexible and easiest method. In this way we can expand, integrate a number of application portals into a single page, and then create a desktop portal for this page to be unified.
Through the web way, needless to say more efficient than native app development, and can cross-platform, free to display your talent.
The focus of this article is: How do I customize the icon "Add to main screen" and open Safari Browser default hide Address bar?
Question: "Add to Main screen" How do I customize the icon?
A code is done: Add the following code to the address page of the URL
- <link rel= "Apple-touch-icon" href= "/content/apple-touch-icon.png"/>
HREF is your icon file.
Question: Open Safari Browser default hide Address bar?
The same code is done:
- <meta name= "apple-mobile-web-app-capable" content= "yes"/> <meta name= " Apple-mobile-web-app-status-bar-style "content=" Black "/>
But it is said that sometimes can not hit the effect, but I tested my ipad2 can be achieved.
Such a perfect web app is localized to your laptop, and the rest of the story is much simpler, and the web is all you have to play.