Change Keyboard Language In iOS App When Click In UITextField

China☆狼群 提交于 2019-12-06 05:36:52

Unfortunately, you cannot control the language of the keyboard. The user chooses which keyboards they would like available via the settings application and can toggle between them using the globe icon on the keyboard. When the keyboard is opened it will open to the most recently used keyboard.

Here is what you need my friend,

[textView setKeyboardType:UIKeyboardTypeNumberPad];

[txtField setKeyboardType:UIKeyboardTypeNumberPad];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!