Re: UITabBarController Confusion
Re: UITabBarController Confusion
- Subject: Re: UITabBarController Confusion
- From: Luke the Hiesterman <email@hidden>
- Date: Tue, 11 Aug 2009 10:16:24 -0700
The default UITabBarController only does autorotation if all of its
child view controllers support autorotation to the relevant
orientation. If you're interested in changing this behavior, you'll
want to subclass UITabBarController.
Luke
On Aug 11, 2009, at 9:56 AM, Bob Barnes wrote:
Hi all,
I have an app with 3 primary views, 2 of which are table views
when in portrait mode, but display as full screen coverflow style in
landscape mode. I originally created a 3rd table view to serve as
the initial view as a way to get to the 3 main views with the intent
I would migrate the whole thing to use a UITabBarController. The
basic design was a UINavigationController as the top level view
controller, which was init'd with the 3rd table view. The
controllers for my other views would be pushed/pop on/off the
controller stack based on row selections for the top table view. For
example, if I was viewing in portrait mode and turned the device to
landscape I would push the view controller for my coverflow view
onto the stack, hide the naviagtion and status bars and that was all
there was to it. That all worked beautifully, but now I'm trying to
convert the interface to use a UITabBarController and running into
problems getting rotation events such as
willRotateToInterfaceOrientation or didRotateToInterfaceOrientation.
I've looked at a number of samples, including the MoviePlayer, and
it seems possible, although none of the samples seem to be doing
quite the same thing. For instance, the MoviePlayer switches based
upon a tap, not an orientation change. Am I just missing something
fundamental to UITabBarController behavior? Would an approach that
incorporates a UITabBar as an additional view beneath my table views
work better? It would mean managing the UITabBar myself, but I have
every reason to believe that I would get orientation change callbacks.
Anyone have any ideas what I'm missing here?
Bob
_______________________________________________
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
_______________________________________________
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