Let UIWebView pop up the button on the keyboard to display Chinese

Source: Internet
Author: User

UIWebView is a very common view, commonly used to load Web pages, such as Baidu:

When you click on the text box, a keyboard with toolbar will pop up, with 3 secondary buttons in the toolbar

With these 3 buttons, is convenient many, but the default is English, sometimes we want to turn the button text into Chinese

In fact, the solution is very simple, just let your application support Chinese localization, meaning to create a new Chinese localization folder in the project Zh-hans.lproj

If you don't know much about localization, check out this article, "Application localization"

Below is a simple demonstration of the following steps:

1. Add Chinese localization support

2. Select a file to support localization, at least one (I have chosen here)

3. You will find one more folder in the project directory

Note that these 2 files already support Chinese localization.

4. Re-run the project, you will find that the button text has become Chinese

Let UIWebView pop up the button on the keyboard to display Chinese

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.