Keyboard not shown under iOS 8

2019-03-03 04:13发布

问题:

When focus on my app's textfields, none of them can call out the keyboard, I cannot enter any letter. But before iOS 8 is okay.

I tried to rotate the screen and found that the keyboard is shown out bounds of the screen, checked the view frame, it's 1024 * 768, seems correct.

回答1:

Finally, find that it's simulator's issue, not iOS 8's bug.

Workaround:

iOS Simulator > Hardware > Keyboard > Toggle Software Keyboard

or just press Cmd + K

Yeah, I've connected a hardware keyboard via bluetooth, but didn't notice this keyboard toggle function until now. Seems Xcode 6 will use my hardware keyboard by default.



回答2:

Open Simulator.

Go to Hardware.

Then select Keyboard.

Then choose iOS Users Same Layout As OS X

Simulator -> Hardware -> Keyboard -> iOS Users Same Layout As OS X