How do I enable the Japanese keyboard on the iPhon

2020-04-11 20:51发布

问题:

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.

  1. Open Simulator
  2. Find Settings. It's an app, not a menu item. Look for the icon with three gears.
  3. Navigate to General > Keyboard > International Keyboards > Add New Keyboard
  4. Now select the international keyboard(s) you'd like to add.
  5. You can access the new keyboard(s) in your app by clicking the button that looks like a globe.
  6. 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).