iPhone:以编程方式更改键盘语言 [英] iPhone: Change Keyboard language programmatically

查看:144
本文介绍了iPhone:以编程方式更改键盘语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当打开本机键盘时,我都会尝试在iOS 5.x应用程序上提供不同的语言支持。以编程方式在本机键盘中提供此语言。有人可以指导我如何支持它?我看到了一个碳框架,但看起来像是Mac应用程序。

I am trying to provide a different language support on my iOS 5.x application whenever native Keyboard is opened. Provide this language in native keyboard programmatically. Could someone guide me how can i support it? I saw a carbon framework, but looks like its for Mac apps.

谢谢。

推荐答案

这不可能 - 用户只能在设置中更改他们的语言。

No this is not possible - user can only change their language in the settings.

但是,如果你可以给用户一个英语键盘选择(或询问他们的偏好)

However you can give the user an "English" keyboard if you choose (or ask them their preference)

你这样做是使用: UIKeyboardTypeASCIICapable

您可以通过按下底行的地球图标直接在键盘上更改键盘。

You can change keyboard directly on the keyboard by pressing "globe icon" on the bottom row.

首先,您必须在设置中为这些语言启用这些语言。然后按键盘上的地球按钮将在这些语言之间切换。

First, you have to enable those language for input in Settings. Then pressing the globe button on the keyboard would toggle between those languages.

这篇关于iPhone:以编程方式更改键盘语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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