I am using a UITextField, and want to input Chinese in the simulator. The Mac's native language is English, which works on all other apps.
When I set the Mac's keyboard to pinyin input, the UITextField still only accepts English, and there is English word completion at the bottom of the screen.
I looked at UITextField.keyboardType, but none of the options seemed useful.
Is there a way to make it accept Chinese? (There was a similar question four years ago Cannot input Chinese in iOS Simulator but no accepted -- or useful -- answer).
Don't change the mac language, you should change the simulator's keyboard language.
From the simulator, go to Settings -> General -> Keyboards -> Add New Keyboard
and then add the Chinese keyboard, then change the langue while typing in the text_field to write in Chinese
Related
I'm trying to make my app accessible with Voice Over. On one of the screens I have a text field for entering number. Nothing special, just default UITextField with keyboardType set to UIKeyboardType.numberPad. Voice Over is actually working well and read all selected keyboard buttons. The problem is that keyboard is always english (with english letters under digits). And when you switch iPhone language to something other than english, Voice Over mixes two languages:
When you select digit on keyboard with single tap, Voice Over read it in current iPhone language (russian in my case)
When you double tap (to enter digit into text field), Voice Over always read it in english
What I changed in setings:
Set iPhone language to russian
Set region to russia (not sure if it matters at all)
In "General -> Keyboard -> keyboards" moved russian keyboard to the top of the list
But nothing helped. UIKeyboardType.numberPad and UIKeyboardType.decimalPad are always english (UIKeyboardType.default is russian as it should be)
Am I missing something?
I also tried to change keyboard language programmatically - iPhone: Change Keyboard language programmatically. But that didn't work either.
It's confusing for sure, but it sounds like your app is not actually localized for Russian. Try localizing it and see if that improves things.
The app has a Chinese localization and runs with Scheme options (see image).
When I hit the text field, I would expect a Chinese keyboard and not a German one.
I only see German, English and Emoji keyboards.
Is there any way to tell the Simulator which keyboard should be used by default?
Unfortunately, this is not automatic. You should manually add a Chinese keyboard and make it the default.
Navigate to Settings/Keyboards, add the Chinese keyboard under Keyboards and drag it to the first place of the list after clicking on Edit.
I have an iOS application which has two languages English and Hebrew. When the application is switched to the Hebrew i want to show the Hebrew keyboard to the UITextField as the Text input mode.
Currently i have seen the following links but i a haven't got any clear idea.
How to present the arabic keyboard while changing the application language to arabic?
iPhone: Change Keyboard language programmatically
Please do help me with the Swift3 code here or any useful idea or snippet fro your side.
I am trying to make my app through internationalization and it works pretty well.
I made it in two languages: Turkish and English. But when I run my app in Turkish language, labels and buttons show Turkish language, but when I tap my UITextField, instead of showing the keyboard in Turkish language, it appears in English. So, how can I display my keyboard in Turkish language?
I am using IQKeyboardManager.
It can not be done automatically. Go to Settings -> General -> Keyboards. Add the keyboard which you would like to add.
Open the application and tap on text field. Tapping on the Globe Icon on keyboard will allow you to toggle the keyboard.
Programatically it is not possible.
you can change localization language if you add this in your info.plist file.
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.
Open on simulator Settings application ->General->International->Language. Select here your language and keyboard will have required letters.
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.
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).