Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 Orientation Issues : Keyboard ends up in incorrect position

I have a universal project for iOS that was created in xCode 5 that I am trying to port to xCode 6. Everything seems to have been fine since I am not using LaunchScreen and iPhone 6 and 6 Plus scale the application to their resolutions.

The problem occurs when device changes its orientation.

Scenario:

It only occurs on iPhone 6 and 6 Plus.

Open Login screen with username and password fields. Rotate the device to Landscape, and tap username or password field. The keyboard appears in the middle of the screen with half cut. Rotating back to portrait hides the keyboard altogether and it no longer appears on screen no matter which field you tap on.

To get the keyboard back, rotate back to Landscape, tap on a field rotate device to opposite Landscape (don't let it go in Portrait). The keyboard suddenly becomes normal and acts fine.

Problematic Keyboard

like image 458
atastrophic Avatar asked Nov 14 '14 11:11

atastrophic


People also ask

Why is my keyboard coming up sideways on my iPhone?

Swipe down from the top-right corner of your screen to open Control Center. Tap the Portrait Orientation Lock button to make sure that it's off. Turn your iPhone sideways.

How do I change the direction of the keyboard on my iPhone?

Look at the top of your home screen to the right of the time. If you see an icon with a lock with a circle around it your orientation is locked. To unlock it double click your home button, slide your finger to the right (screen goes left) and tap the orientation lock button. If that does not work Reset your iPhone.

Why is my phone stuck sideways?

There may be a simple explanation. If the screen is locked in Portrait or Landscape, the screen orientation icon will be labeled as such. The Auto rotate icon will only appear if the Auto rotate feature is activated. If you see an icon that says Portrait or Landscape, you can tap it to enable Auto rotate.

How do I change my iPhone message to portrait?

Swipe up from the bottom edge of your screen to open Contol Center. Tap the Portrait Orientation Lock button to make sure that it's off.


1 Answers

I got the same problem, and that's because your app is launched in scaled mode.
It seems that Apple didn't go the full blown way to handle landscape in this scaled mode.

The solution is to switch to non-scaled mode for the iPhone 6-6Plus, using the trick specified here: How to enable native resolution for apps on iPhone 6 and 6 Plus?

Note that this will likely break a lot of your screens in the process.. but there's no other solution.

like image 162
Gui13 Avatar answered Oct 03 '22 08:10

Gui13