• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My App refuses to rotate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My App refuses to rotate


  • Subject: Re: My App refuses to rotate
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 28 May 2013 14:33:23 +0700

On 28 May 2013, at 14:14, Andreas Liebschner <email@hidden> wrote:

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

No the rootViewController is a BaseViewController which has only supportedInterfaceOrientations overridden.

The superview hierarchy of WordsViewController is:
super 0x2012c000 UITableView
super 0x21d05b80 UIViewControllerWrapperView
super 0x1f53db90 UINavigationTransitionView
super 0x1f53e8f0 UILayoutContainerView
super 0x1f541270 UIWindow


> If that's the case, you will need to subclass UINavigationController
> or UITabBarController override its supportedInterfaceOrientations (+
> its shouldAutorotate in case you need to support iOS < 6) because
> that's where the magic happens.

Not interested in old iOS (yet) - sufficient if it runs on 6.1
Just checked: all ViewControllers have shouldAutorotate = YES.

Gerriet.


_______________________________________________

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

References: 
 >My App refuses to rotate (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: My App refuses to rotate (From: Andreas Liebschner <email@hidden>)

  • Prev by Date: Re: My App refuses to rotate
  • Next by Date: Re: NSMapTable with C strings as keys
  • Previous by thread: Re: My App refuses to rotate
  • Next by thread: What, exactly constitutes a mutable action on an instance?
  • Index(es):
    • Date
    • Thread