无法使用 Mac 键盘在 iphone 模拟器中输入文本字段? [英] Not able to type in textfield in iphone simulator using Mac Keyboard?

查看:14
本文介绍了无法使用 Mac 键盘在 iphone 模拟器中输入文本字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款支持纵向和横向模式的基本 iOS 应用.当 iPhone 模拟器键盘在横向打开并且我将应用程序切换到纵向模式时,我无法使用 Mac 物理键盘在任何文本字段中输入任何内容.

I'm working on a basic iOS app which supports both portrait and landscape modes. When the iPhone simulator keyboard is open in landscape and I'm switching the app to portrait mode I'm unable to type anything in any text field using my Mac physical keyboard.

有没有人遇到过这种情况?这是一个已知的错误吗?

Has anyone experienced this before? Is it a known bug?

推荐答案

找到了一个对我有用的很好的解决方案.
打开模拟器,然后找到菜单 Hardware -> Keyboard 有三个选项:

Found a great solution that worked for me.
Open simulator, then find menu Hardware -> Keyboard has three options:

  1. iOS 使用与 OS X 相同的布局:此选项禁用 Mac 键盘
  2. 连接硬件键盘:此选项启用 Mac 键盘,但键盘不会显示.
  3. 切换软件键盘:此选项将允许您使用 Mac 键盘进行输入,并且还会在屏幕键盘上显示 iOS.
  1. iOS uses same layout as OS X : This option disables the Mac keyboard
  2. Connect Hardware Keyboard : This option enables Mac keyboard but the keyboard will not show up.
  3. Toggle Software keyboard : This option will allow you type using your Mac keypad and will show the iOS on screen keyboard as well.

这篇关于无法使用 Mac 键盘在 iphone 模拟器中输入文本字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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