UITextField in iOS7 simulator do not take any input from mac keyboard

≡放荡痞女 提交于 2019-12-10 13:36:50

问题


UITextField suddenly do not take any input from mac keyboard, However I am able to use the virtual keyboard coming up on UIView on iOS7.0 simulator.

Has any one resolved this issue before?


回答1:


In simulator menu:

Hardware -> Keyboard -> Connect Hardware Keyboard

helped me with this problem




回答2:


I reset the iOSSimulator, its contents and settings and quit and relaunched the iOS-simulator. it worked.

This exactly happened when I updated the code from SVN.

I guess its always a good practice to clean the code, relaunch the simulator when ever updating the source code from SVN especially with Xcode5.




回答3:


This looks like a bug in the simulator.

Steps to reproduce (and fix)

  1. Open simulator and for example Safari
  2. Start typing along and it will work fine
  3. Use CMD + LEFT or RIGHT arrow to rotate the device to landscape
  4. Try typing using the mac keyboard and it will not work
  5. Press and release the CMD key once and the keyboard is working again

I'll file a bug report with Apple now.




回答4:


Restart of simulator worked for me.




回答5:


If your programme unable to take input from mac keyboard then perform the following steps:

  1. Open the simulator

  2. Go to hardware option in Menu

  3. Choose Keyboard> Connect Hardware Keyboard

Shortcut
command+shift+K



来源:https://stackoverflow.com/questions/19196609/uitextfield-in-ios7-simulator-do-not-take-any-input-from-mac-keyboard

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