I am running tests which require having different keyboards open while typing throughout the app. I want to be able to run a test that perhaps launches a script that changes the default language before the test begins. I know you can run scripts which do similar things to change the state of the simulator however I cannot find where the keyboard settings are located.
Asked
Active
Viewed 1,288 times
1 Answers
2
I spent some time trying to figure this one out.
Here's what I've got for you:
To use different keyboards, you need to tell manually the Simulator which languages you plan on using when you type.
From then on, whenever the keyboard is up, there will be a
UIAKey
namedNext Keyboard
that looks like a Globe.Do a long press on it to get an action sheet open with all the different languages, or click it once to cycle through the keyboards.
Step-by-step:
Go into
System Preferences
on the simulatorClick on
General
Click on
Keyboard
Click on
Keyboards
Click on
Add New Keyboard...
Select
(Language)
Close the Simulator
Open your app
Click on a
Textfield
See the
Globe Button
Click the
Globe Button
Keyboard should now be in
(Language)

Mike Akers
- 12,039
- 14
- 58
- 71

Jess
- 3,097
- 2
- 16
- 42
-
My answer isn't the best way to go... You should modify the simulator's plist file before launching it. See http://stackoverflow.com/a/31442185/3622606 – Jess Apr 12 '16 at 16:44