键盘语言选择不会显示在UITextField中

时间:2017-08-03 10:45:21

标签: ios objective-c xcode

所以我面对我的iOS应用程序的奇怪行为,其中连接到某些UITextFields的键盘确实显示切换到另一种语言的选项,而对于其他键盘,它不会如下图所示。<\ n / p>

带语言选择选项的图片: enter image description here

没有语言选择的图片选项: enter image description here

即使他们基本上有相同的代码 任何帮助将不胜感激。

2 个答案:

答案 0 :(得分:1)

仔细查看UIKeyboardType

在您的代码中:self.textField.keyboardType = UIKeyboardTypeASCIICapable;更改为self.textField.keyboardType = UIKeyboardTypeDefault;

或在故事板中:

enter image description here

答案 1 :(得分:0)

就我而言,我不得不将Application language中的xcscheme标签设置为系统语言,而不是英语

它是这样的:

首先我打开edit schemes

enter image description here

然后将Application Language设置为System Language

enter image description here

相关问题