I have
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
in info.plist and did a search and set every instance of shouldAutorotateToInterfaceOrientation
to return YES
. But on iPhone it behaves as if upsidedown is not supported. UpsideUp portrait works, landscapes work, updsidedown shows landscape. Why?
iPad works fine in all orientations. And they share .xibs
UPDATE
I have since added
- (BOOL)shouldAutorotate {
return YES;
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
after every existing instance of shouldAutorotateToInterfaceOrientation
and still no love.
I am targeting iOS 4.3 but my simulator and physical device run iOS 6
Turn on Auto rotate. You'll find this setting in the Quick Settings menu. If you see Auto rotate highlighted in blue, then auto rotate is turned on. If you don't see Auto rotate, but there's a Portrait icon instead, auto rotate is disabled.
I've been using an iPhone 12 Pro for a year and just got my upgrade to the 13 Pro.. Neither of these devices rotate upside down. I think rotation ability varies by app. But I don't think I've had the ability to rotate things upside down for a long time..
If the screen rotation is already on try turning it off and then on again. To check this setting, you can swipe down from the top of the display. If it's not there, try going to Settings > Display > Screen rotation.
Need some more context based on what you've tried already? Are you using a NIB-based setup with a navigation controller, tab bar controller or something like that? If so, you need to add a category to support it because you can't override the implementation of those classes in NIBs (or in general)
https://stackoverflow.com/a/12758715/490180
Talks about iPhone 5, but the issue is really iOS6 related.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With