> Neil —
> THANK YOU. You're exactly right: the TabBarController's view must be a
> direct subview of the window.
> You have saved me from an irreversible descent into madness. I owe you
> one.
> P
> On Mar 2, 2009, at 8:00 PM, Neil Mix wrote:
>> I remember encountering this once. I think the problem turned out to
>> be that my TabBarController's view wasn't a direct subview of the
>> window, but was enclosed in some other view instead. After placing
>> the view as a direct child of the window, it worked.
>> FWIW you can also subscribe to the orientation events directly,
>> something like this:
>> [[UIDevice currentDevice]
>> beginGeneratingDeviceOrientationNotifications];
>> [[NSNotificationCenter defaultCenter]
>> addObserver:self
>> selector:@selector(deviceOrientationDidChange:)
>> name:@"UIDeviceOrientationDidChangeNotification"
>> object:nil];
>> On Mon, Mar 2, 2009 at 5:14 PM, Paul Cantrell <cantr...@pobox.com>
>> wrote:
>>> I'm try to make my app rotate, and I find that
>>> shouldAutorotateToInterfaceOrientation is never called.
>>> This has worked in the past with no trouble, but this time, I have a
>>> rather complex view hierarchy:
>>> UITabBarController
>>> MyThingerController
>>> MySubThingerController
>>> I tried overriding shouldAutorotateToInterfaceOrientation on all
>>> three
>>> controllers; it's not called anywhere.
>>> Anybody have any theories on why it would never be called?
>>> Cheers,
>>> Paul
>> --
>> My info:
>> Work: http://www.pandora.com/
>> Play: http://www.neilmix.com/
> _________________________________________________________________
> "After hearing ten thousand explanations, a fool is no wiser.
> But an intelligent person needs only two thousand five hundred."
> —Mahabharata