0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

iOSシミュレータのキーボードが出ない・消えないときの対処法

0
Posted at

はじめに

シミュレータ開発中、こんなことで詰まったことはありませんか?

  • テキストフィールドをタップしてもキーボードが出てこない
  • キーボードを閉じたいのに消えない

どちらも原因はシンプルで、知っていれば数秒で解決できます。

キーボードが出ないとき

原因①:Connect Hardware Keyboard がオンになっている

Simulator メニューの
I/O → Keyboard → Connect Hardware Keyboard
がオンだと、ソフトウェアキーボードは表示されません。
チェックを外せばOK。

Mac の物理キーボードで入力できるので不要という設計ですが、
実機と同じ見た目でテストしたい場合はオフにしておきましょう。

原因②:ショートカットキーで非表示になっている

Cmd + K でキーボードの表示/非表示がトグルされます。
意図せず押していた可能性があるので、一度試してみてください。

キーボードが消えないとき

こちらも Cmd + K で非表示にできます。

まとめ

症状 確認ポイント 対処
キーボードが出ない メニュー設定 Connect Hardware Keyboard をオフ
キーボードが出ない / 消えない ショートカット Cmd + K でトグル
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?