Remover
Remover

Reputation: 1638

iphone - programmatically rotate system keyboard to landscape when device is in portrait orientation

I would like to do this because the keyboard buttons are slightly bigger in landscape mode than portrait and I will have older users using my app.

Does anybody know a way to do it??

Thanks.

Upvotes: 3

Views: 2460

Answers (1)

MishieMoo
MishieMoo

Reputation: 6680

The keyboard will show up in the orientation of the statusbar, which doesn't always change with rotations for some reason. So if you want to display that view only in landscape set [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeLeft; or whichever orientation you want to prefer in your viewWillAppear method.

Upvotes: 6

Related Questions