如何在iphone模拟器上使用键盘输入? [英] How do I type using my keyboard on the iphone simulator?

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

问题描述

我曾经能够在启动iPhone模拟器后使用我的真实Mac键盘输入。在使用大量文本进行测试时,使用屏幕上的模拟器键盘进行打字非常糟糕。

I used to be able to type with my real mac keyboard after launching the iPhone Simulator. Typing with the on-screen simulator keyboard is just horrible when testing with large amounts of text.

无论我做什么,我都无法让键盘输入在模拟器内。即使我将模拟硬件键盘打开,它也不会输入任何内容。有人可以告诉我我做错了什么吗?有没有办法再使用真正的键盘输入?

No matter what I do, I can't get my keyboard to type anymore inside the simulator. Even if I have "Simulate Hardware Keyboard" switched ON, it just won't type anything. Can someone please tell me what I'm doing wrong? Is there no way to type using the real keyboard anymore?

推荐答案

尝试删除iPhone模拟器首选项文件。当我的iPhone模拟器停止响应按键时,这就修复了它。

Try trashing the iPhone Simulator preferences file. When my iPhone Simulator stopped responding to keystrokes, this fixed it.


  1. 退出模拟器。

  2. 转到查找程序并按(命令+ shift + G)然后导航〜/ Library / Preferences

  3. 移动 com.apple.iphonesimulator.plist 到垃圾桶。

  4. 尝试再次在模拟器中启动你的iPhone应用程序。

  1. Quit the simulator.
  2. Go to finder and press (command+shift+G) then navigate ~/Library/Preferences.
  3. Move com.apple.iphonesimulator.plist to the trash.
  4. Try launching your iPhone app in the simulator again.

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

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