iOS development: Simple Web application localization

Source: Internet
Author: User
Tags touch

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

    1. <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:

    1. <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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.