How do I type using my keyboard on the iphone simu

2019-01-29 18:39发布

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?

11条回答
Juvenile、少年°
2楼-- · 2019-01-29 18:45

MY PROBLEM WAS KEYBOARD IS SHOWING AND KEYSTROKES NOT DETECTING. AND I FOUND THE SOLUTION:

You don't need to quit the keyboard.

Try Hardware->Keyboard->Connect Hardware Keyboard directly

查看更多
孤傲高冷的网名
3楼-- · 2019-01-29 18:47

All I needed to do was quit the simulator and launch it again

查看更多
地球回转人心会变
4楼-- · 2019-01-29 18:51

This is because you have used changing the orientation of simulator using keyboard shortcuts. Just press cmd on the mac keyboard then start typing.

查看更多
手持菜刀,她持情操
5楼-- · 2019-01-29 18:56

Just restart Simulator (close and open the app).

查看更多
爱情/是我丢掉的垃圾
6楼-- · 2019-01-29 18:59

Deleting com.apple.iphonesimulator.plist did not help me under Xcode 6.0.1. Probably, it worked in old Xcode.

But, what works perfectly for me under Xcode 6.0.1, it is new hot Keys in iOS Simulator:

Shift-Command-K   Connect/Disconnect Hardware Keyboard
Command-K         Toggle (Show/Hide) Software Keyboard

And, you know, I really suffered for last 2 months, until found it, and it is very convenient now))

查看更多
等我变得足够好
7楼-- · 2019-01-29 18:59

Removing com.apple.iphonesimulator.plist worked for me too, but I had to locate it inside the hidden folder /Users/[yourusername]/Library/Preferences/

查看更多
登录 后发表回答