iPhone 5 Keyboard sizing

2020-07-11 10:08发布

问题:

I've been testing my app in the 4-inch and 3.5-inch iPhone simulators, and when bringing up a keyboard with a UITextField in the 4-inch simulator in landscape mode, it's squished up to the side. It looks like a normal 3.5-inch keyboard:

Am I missing something telling it to stretch properly?

Please note - I don't have access to an actual iPhone 5 device to test on. Any help would be appreciated.

回答1:

Maybe your simulator is set to the 4-inch model but is running iOS5--this setup is possible in iOS Simulator but doesn't exist in the wild.