首页 > 解决方案 > How can I force/setup the right keyboard in the iOS Simulator during tests?

问题描述

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?

Scheme options and Simulator screenshot

标签: iosxcodelocalizationios-simulatorxcode-scheme

解决方案


不幸的是,这不是自动的。您应该手动添加中文键盘并将其设为默认值。

导航到Settings/Keyboards ,在Keyboards下添加中文键盘,然后单击Edit将其拖动到列表的第一位。

设置/键盘/键盘


推荐阅读