Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone wont autorotate to upsidedown

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

like image 859
Fresheyeball Avatar asked Oct 18 '12 18:10

Fresheyeball


People also ask

Why won't my phone rotate upside down?

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.

Does iPhone 13 rotate upside down?

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..

Why isn't my auto rotate not working?

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.


1 Answers

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.

like image 191
Matt S. Avatar answered Sep 19 '22 10:09

Matt S.