Xcode 6: Keyboard does not show up in simulator

IosKeyboardIos Simulator

Ios Problem Overview


The keyboard does not show up when I run the simulator and click in the UITextView. How do I re-enable the keyboard?

It used to work but now it doesn't - I don't know what I might have clicked by accident... any tips would be appreciated!

Ios Solutions


Solution 1 - Ios

I had the same issue. My solution was as follows:

  1. iOS Simulator -> Hardware -> Keyboard
  2. Uncheck "Connect Hardware Keyboard"

Mine was checked because I was using my mac keyboard, but if you make sure it is unchecked the iPhone keyboard will always come up.

Solution 2 - Ios

While testing in the ios8 beta simulator, you may toggle between the "software keyboard" and "hardware keyboard" with +K.

UPDATE: Since iOS Simulator 8.0, the shortcut is ++K.

Solution 3 - Ios

Simulator -> Hardware -> Keyboard -> Toggle Software Keyboard should solve this problem.

Simulator->Hardware->Keyboard->Toggle Software Keyboard

Solution 4 - Ios

This seems to be a bug in iOS 8. There are two fixes to this problem :

  1. Toggle between simulator keyboard and MacBook keyboard using the Command+K shortcut.

  2. Reattach keyboard to simulator :

    a. Open Simulator

    b. Select Hardware -> Keyboard

    c. Uncheck and then check 'Connect Hardware Keyboard'

Screenshot for step 2

OR simply press the Shift + Command + K shortcut

Solution 5 - Ios

To enable/disable simulator keyboard,

⌘ + K (Ctrl + k)

To disable input from your keyboard,

iOS Simulator -> Hardware -> Keyboard -> Uncheck "Connect Hardware Keyboard"

Solution 6 - Ios

You can use : ++K to show keyboard on simulator.

Solution 7 - Ios

Just press ⌘K it will toggle keyboard.

Solution 8 - Ios

To enable/disable simulator keyboard: click ⇧+⌘+K to show the keyboard on simulator, click again to disable (hide) the keyboard.

++K

Solution 9 - Ios

It would be difficult to say if there's any issue with your code without checking it out, however this happens to me quite a lot in (Version 6.0 (6A216f)). I usually have to reset the simulator's Content and Settings and/or restart xCode to get it working again. Try those and see if that solves the problem.

Solution 10 - Ios

In the new simulator Hardware option is removed,

If you want to find a Keyboard option manually, Then click on the I/O section,

I/O -> Keyboard ->Toggle Software Keyboard(⌘K)

enter image description here

Solution 11 - Ios

To fix the problem follow this -

  1. Quit Xcode and simulator
  2. Press ‘command+shift+g’ .. it will open the “go to folder” dialog.
  3. type “~/Library/Preferences” in this dialog to go to your preference folder.
  4. Delete “com.apple.iphonesimulator.plist” in this folder
  5. Done. “com.apple.iphonesimulator.plist” will be regenerated when you start simulator again.

Alternatively you can also do this with just one command.

Open terminal and fire -

  1. rm ~/Library/Preferences/com.apple.iphonesimulator.plist

This will do the trick in one step! Just make sure you quit Xcode and simulator before running this.

Solution 12 - Ios

If keyboard do not shown up automatically in simulator, just press [Command+K]

or Hardware -> Keyboard -> Toggle Software Keyboard

Solution 13 - Ios

This worked for me. Click I/O, then Keyboard. When the "Connect Hardware Keyboard" is deselected, then the simulator keyboard will popup.
enter image description here

Solution 14 - Ios

in viewDidLoad add this line

yourUiTextField.becomeFirstResponder()

Solution 15 - Ios

Simple way is just Press command + k

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKatsuView Question on Stackoverflow
Solution 1 - IosJoeView Answer on Stackoverflow
Solution 2 - IosaidanmelenView Answer on Stackoverflow
Solution 3 - IosKent KeView Answer on Stackoverflow
Solution 4 - IosJayprakash DubeyView Answer on Stackoverflow
Solution 5 - IosiAnkitView Answer on Stackoverflow
Solution 6 - IosRachitView Answer on Stackoverflow
Solution 7 - IosIryna BatvinaView Answer on Stackoverflow
Solution 8 - Iosmidhun pView Answer on Stackoverflow
Solution 9 - IosMartin VelchevskiView Answer on Stackoverflow
Solution 10 - IosJaywant KhedkarView Answer on Stackoverflow
Solution 11 - IosAdeesh JainView Answer on Stackoverflow
Solution 12 - IosSyed Sadrul Ullah SahadView Answer on Stackoverflow
Solution 13 - IosScottyBladesView Answer on Stackoverflow
Solution 14 - IosTalha AhmedView Answer on Stackoverflow
Solution 15 - Iossaigopi.meView Answer on Stackoverflow