问题
I have a UITableview with a UISearchBar, which contain Japanese words, and I want to test if it works to search Japanese words with Japanese keyboard. I can't find how to change the default keyboard on iPhone simulator.
回答1:
Open on simulator Settings application ->General->International->Language. Select here your language and keyboard will have required letters.
回答2:
I think what we really want to do is add an international keyboard, not change the language of the simulator.
- Open Simulator
- Find Settings. It's an app, not a menu item. Look for the icon with three gears.
- Navigate to General > Keyboard > International Keyboards > Add New Keyboard
- Now select the international keyboard(s) you'd like to add.
- You can access the new keyboard(s) in your app by clicking the button that looks like a globe.
- Once selected, that keyboard will remain the default until you change it again using the method from step 5.
回答3:
Note that for Japanese (and Chinese) the keyboard layout isn't that important; what is needed is an input module converting the input to actual ideographic characters. Those are called "IME" (Input Method Editor)
A keyboard has just about a hundred keys, only half of them being alphabetic; but Japanese and Chinese need several thousands different characters. The role of IMEs are to convert phonetic of descriptive input into the wanted characters. Japanese keyboard provides direct typing of phonetic japanese characters (katakana and hiragana); but all japanese IMEs acccept phonetic input either in native kana or in romanized (in latin letters).
来源:https://stackoverflow.com/questions/8051141/how-do-i-enable-the-japanese-keyboard-on-the-iphone-simulator