iPhone 6模拟器,隐藏键盘问题 [英] iPhone 6 simulator, hide keyboard issue

查看:157
本文介绍了iPhone 6模拟器,隐藏键盘问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone 6是否有一些新方法(屏幕外/硬按钮)重新打开隐藏的软键盘?我没有可以测试的物理设备,但我在iPhone 6模拟器中看到了一些我在iPad或iPhone 5中看不到的新内容。

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.

横向视图中的iPhone 6现在有一个隐藏键盘按钮,就像之前只有iPad一样。以下是我看到的不同行为,我希望这不是我需要设计我的应用程序的新问题。

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.

初始步骤是相同的iPad和iPhone 6模拟器(并在物理iPad上测试,与模拟器相同):

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


  1. 切换到横向

  1. Switch to landscape orientation

打开日历应用程序(也可能是其他应用程序,但想使用本机应用程序给出示例,它也发生在我的应用程序中,这也是我关心的原因)

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)

点按+添加新活动

点击文字字段

点击右下角的隐藏键盘按钮

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

点击另一个文本字段

在物理iPad和iPad模拟器上,此时键盘重新打开。使用iPhone 6模拟器,键盘不会重新打开。

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

我在我的应用程序中尝试了一些不同的resignFirstResponder和becomeFirstResponder组合,试图让它重新出现,但是什么都没有用。因为日历应用程序也有这个问题我希望它实际上不是一个问题,并且有一种方法可以让用户手动重新打开键盘,如果他们想要的话?在模拟器中,我可以使用切换软件键盘并重新打开,但不确定物理设备是否有让用户重新打开键盘的东西?

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).

推荐答案

尝试取消选中硬件=>键盘=>连接硬件键盘。

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

这篇关于iPhone 6模拟器,隐藏键盘问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆