Re: UINavigationController inside a TabBarController
Re: UINavigationController inside a TabBarController
- Subject: Re: UINavigationController inside a TabBarController
- From: "Henry McGilton (Boulevardier)" <email@hidden>
- Date: Fri, 12 Feb 2010 20:59:06 -0800
On Feb 12, 2010, at 8:34 PM, Laurent Daudelin wrote:
> I'm not sure what I'm missing but I know it must be big. I started the design of a TabBar-style app and now, I want one of the view to be a navigation one. I did drag a UINavigationController to my xib, put it inside the TabBarView and put my tableview under the navigation controller. When I open the window in IB, I can see my tableview inside the nav controller, in the first tab item but when I compile and go, only the navigation view shows up when I select the tab item. I've been banging my head, trying to find what connection or method I missed, I can't find it.
Your Navigation Controller must be one of the controllers in the Tab Bar
Controller's array of View Controllers.
Then, the Navigation Controller's Root View Controller must be the
Table View Controller.
Is that the structure you have?
Possibly there is either a class identity that has not been correctly set,
or, there might be a Nib Name that is not correctly set. This stuff is notoriously
easy to get wrong . . .
In IB's List View inspector, go through each of the Tab Bar's list of View
Controllers. Make sure their Class identities are the correct type of View
Controller, and make sure that their NIB names (if appropriate) are
correct.
In a simple experiment, I dragged a Tab Bar Controller into a XIB.
I deleted one of the (two) View Controllers from the Tab Bar Controller.
Then I dragged a Navigation Controller into the XIB, and moved it into
the Tab Bar Controller's hierarchy. But the Navigation Controller's
Root View Controller's class identity shows up as a simple UIViewController.
I had to select that and specifically set its identity to UITableView Controller.
Hope This Helps a Little . . .
Cheers,
. . . . . . . . Henry
=================================================
iPhone App Development and Developer Education . . .
Visit www.nonatomic-retain.com
Mac OSX Application Development, Plus a Great Deal More . . .
Visit www.trilithon.com
_______________________________________________
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