iPhone 6 simulator, hide keyboard issue

独自空忆成欢 提交于 2019-12-10 13:36:56

问题


Does the iPhone 6 have some new way (off-screen/hard button) to reopen a hidden soft keyboard? I don't have a physical device to test with, but I'm seeing something new in the iPhone 6 simulator that I don't see in iPad or iPhone 5.

The iPhone 6, in landscape view, now has a "hide keyboard" button, like only iPad has had before. Here are the different behaviors I'm seeing, and I'm hoping it is not a new issue I need to design my apps around.

Initial steps are the same in iPad and iPhone 6 simulators (and tested on physical iPad and works same as simulator):

  1. Switch to landscape orientation

  2. Open Calendar app (probably other apps too, but wanted to give example using native app, it happens in my app also which is why I care)

  3. Tap + to add a new event

  4. Tap in a text field

  5. Tap the "hide keyboard" button in bottom-right corner

  6. Tap to another text field

On physical iPad and iPad simulator the keyboard reopens at this point. With iPhone 6 simulator, the keyboard doesn't reopen.

I've tried some different combinations of resignFirstResponder and becomeFirstResponder in my app to try to get it to reappear, but nothing is working. Because the Calendar app also has this issue I'm hoping it isn't actually an issue, and there is a way for the user to reopen the keyboard manually if they want? In the simulator I can use "toggle software keyboard" and it reopens, but not sure if the physical device has something that lets the user reopen the keyboard?

If I switch to another app, or the home screen, after that the keyboard does start working as expected again (tap a text field and it opens).


回答1:


Try unchecking Hardware => Keyboard => Connect Hardware Keyboard.




回答2:


Try these keys to open soft keyboard => Command + K



来源:https://stackoverflow.com/questions/25938860/iphone-6-simulator-hide-keyboard-issue

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