如何在iPhone应用程序中更改显示的UIKeyboard的语言? [英] How can I change the language of the displayed UIKeyboard from within my iPhone app?

查看:122
本文介绍了如何在iPhone应用程序中更改显示的UIKeyboard的语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone应用程序中,我想更改显示的UIKeyboard的语言。我怎么能这样做?

Within my iPhone application, I'd like to change the language of the displayed UIKeyboard. How can I do this?

推荐答案

来自 iPhone应用程序编程指南


根据程序的需要和用户的首选语言,系统可能会显示多个不同键盘中的一个。虽然你的应用程序不能
控制用户的首选语言

(因此键盘输入
方法),它可以控制键盘上的
属性它的
预期用途,例如任何特殊键的
配置和其行为

Depending on the needs of your program and the user’s preferred language, the system might display one of several different keyboards. Although your application cannot control the user’s preferred language (and thus the keyboard’s input method), it can control attributes of the keyboard that indicate its intended use, such as the configuration of any special keys and its behaviors.

[...]

为了方便不同用户的语言偏好
,iPhone OS还支持不同的输入法和
不同的
键盘布局语言,其中一些显示在
图5-4。 键盘的输入法和
布局由用户的语言偏好确定为

To facilitate the language preferences of different users, iPhone OS also supports different input methods and keyboard layouts for different languages, some of which are shown in Figure 5-4. The input method and layout for the keyboard is determined by the user’s language preferences.

因此,似乎没有办法提出与用户偏好不同的语言键盘。

So it appears there's no way to bring up a keyboard of a different language than the user's preference.

这篇关于如何在iPhone应用程序中更改显示的UIKeyboard的语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆