How to programmatically change keyboard in iOS?

I would like to programmatically change the keyboard when I press the event button.

I used a custom keyboard in my application, but I need to change the keyboard in English (USA) programmatically when I press a button on my custom keyboard.

+5
source share
3 answers

I just got my answer to my question.

Just put nilin inputViewand it will change to an English (US) keyboard.

+3
source

The only way to control the keyboard is to show it (by setting UITextView / UITextField as the first responder) by hiding it (by canceling editing. Easy way to reject the keyboard? ).

, . , ( UIButtons) , , ( , ). , , ? , , .

+3

You can programmatically switch to the English (US) keyboard.

Try the following:

textfield.secureTextEntry=YES;
textfield.secureTextEntry=NO;
-4
source

All Articles