开发者

Change Keyboard Language In iOS App When Click In UITextField

开发者 https://www.devze.com 2023-04-02 13:46 出处:网络
i tried many ways to change keyboard in ipad programmatically but it doesn\'t change at al开发者_运维百科l .

i tried many ways to change keyboard in ipad programmatically but it doesn't change at al开发者_运维百科l . i cant find any property in uitext for doing this.

any idea?


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];
0

精彩评论

暂无评论...
验证码 换一张
取 消