问题
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)
- Open simulator and for example Safari
- Start typing along and it will work fine
- Use CMD + LEFT or RIGHT arrow to rotate the device to landscape
- Try typing using the mac keyboard and it will not work
- 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:
Open the simulator
Go to hardware option in Menu
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