Missing keyboard on iOS8 simulator?

眉间皱痕 提交于 2019-12-20 17:33:05

问题


I'm checking my app against iOS8 in the simulator and one thing that puzzles me is that when I tap on a UITextField or UITextView the keyboard doesn't appear on the screen! I can still enter text with my hardware keyboard. Also, if the input element has a inputAccessoryView, that view is shown on the bottom of the screen. So everything works as expected except that the keyboard is not appearing on the screen. This is valid for all input elements throughout the app. I don't use the new feature for custom keyboard.

Checked the Settings - don't see anything that can help.

I know XCode6 is still a beta but this seems too obvious problem to be a bug (or is it!?)


回答1:


In the iOS Simulator menu select:

Hardware > Keyboard > Toggle Software Keyboard

or press Cmd + K.

The Connect Hardware Keyboard option in the same menu has to be enabled.




回答2:


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

  1. Toggle between simulator keyboard and MacBook keyboard using [Command+K] shortcut key.

  2. Reattach keyboard to simulator:

    a. Open Simulator

    b. Select Hardware -> Keyboard

    c. Uncheck and then check 'Connect Hardware Keyboard'

OR simply press [Shift + Command + K] shortcut key




回答3:


i had the same issue and i resolved by doing following steps

1) Select the iOS Simulator

2) Goto Hardware in menu (top Left)

3) Select Keyboard

4) Uncheck the "Connect Hardware Keyboard" option

Happy Coding :)




回答4:


I highly recommend to disable "Slow Animations" which can be found under "Debug" -> "Slow Animations".

For me, that permanently fixes the issue.

Shortcut is: CMD + T



来源:https://stackoverflow.com/questions/24095677/missing-keyboard-on-ios8-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!