Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone app doesn't respond after starting in landscape orientation on iPad

My iPhone app doesn't respond when launched on an iPad in landscape mode.

If it launches in portrait mode everything works fine. In landscape orientation nothing works until the app is rotated or the 1x 2x button is pressed.

I've tried debugging the app with breakpoints and stepping through the code but it shows that the app is running normally in the debug console.

like image 433
SIMON BARCLAY Avatar asked Nov 18 '12 22:11

SIMON BARCLAY


People also ask

How come some apps won't rotate on my iPad?

Make sure that Rotation Lock is off: Swipe down from the top-right corner of your screen to open Control Center. Then tap the Rotation Lock button to make sure it's off.

Why do some apps not work in landscape mode?

Ensure that you have enabled Auto-rotate for your tablet. To do this, swipe down on the tablet to display the status bar and touch Auto Rotate.

How do I make my iPhone apps landscape on iPad?

Answer: A: For compatible Apps that are intended for iPhone, iPadOS15 will now automatically rotate the App to display in Landscape screen orientation. There is no manual configuration or setting to enable this feature.

Why won't some apps rotate 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.


1 Answers

I have found that this is unique to iOS 6 devices, but if you remove all of the entries under "Supported interface orientation" in the app's plist, this problem goes away. Or if you check the "Hide during application launch" option for the "Status Bar" settings on the Summary screen of the Target settings, this also fixes it:

hide during application launch

There's no logical reason that I can see that either of these options should fix this bug, but they both do.

If you play around with the supported orientation settings in iOS 6, you can still programmatically control the permitted interface orientations via supportedInterfaceOrientations (or in iOS 5, you can still use theshouldAutorotateToInterfaceOrientation: method).

like image 57
Rob Avatar answered Nov 15 '22 23:11

Rob