Re: My App refuses to rotate
Re: My App refuses to rotate
- Subject: Re: My App refuses to rotate
- From: Andreas Liebschner <email@hidden>
- Date: Tue, 28 May 2013 09:14:05 +0200
On Tue, May 28, 2013 at 9:01 AM, Gerriet M. Denkmann
<email@hidden> wrote:
> But in the iPhone simulator and in the iPhone device the rootViewController
> always has interfaceOrientation = 1 (Portrait).
> All other ViewControllers also show interfaceOrientation = 1 (Portrait).
Any chance that what you are referring to as the rootViewController is
actually a child of a UINavigationController or UITabBarController?
If that's the case, you will need to subclass UINavigationController
or UITabBarController override its supportedInterfaceOrientations (+
itsshouldAutorotate in case you need to support iOS < 6) because
that's where the magic happens.
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden