Yes, you need a nav controller to be the view controller for one of your tabs. This case is explicitly covered in the iPhone programming guide at developer.apple.com. Check it out.

Luke

Sent from my iPhone.

On Oct 4, 2009, at 3:27 PM, Trygve Inda <[email protected]> wrote:

My root view is a TabBarController with three tabs. Each one gets its view
from a different nib and all is well... The tab controller handles the
load/unload as the user clicks the tabs.

One of these tabs has a tableview in it's view. I would like to add a second table that is accessed by clicking one cell in the main table (said cell
would have a disclosure triangle).

How do I handle switching the view as the view where the main table resides
is owned and controlled by the master tabbar controller?

So I guess I need a nav controller within the tabbar controller???

How do I set this up?

I have 4 nibs now: Main, tab1, tab2, tab3. Tab one contains the logic for
the table e.g.:

- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath


So now I need to add a table2 to be accessed from a cell in table1.

Thanks,

Trygve


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com

This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to