Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

Tab Bar Controller + Navigation Controller??

User Post

8:14 am
October 1, 2008


Noob

posts 1

1

Hi. I am trying to build a program that functions like “the elements” in apples sample code. I need to do the first part in IB with the Tab Bar controller and the elements are all programatic and no xib file to go off of. 

Each tab item would be a separate table. selecting a row on the table would launch a different view which would have a table (with data based on previous choice) and instead of a tab bar it would have a tool bar. 

I have tried many different ways to do this in IB but I cant seem to get it to work for the past few days. I would be very greatful if someone could help me. 

If someone could show me how to do it I would definitely donate to this site as it has already helped me out a lot. 

9:55 pm
October 9, 2008


ericbrin

Noob

posts 2

2

I'm trying to figure out the same thing. I'd love a tutorial on this stuff.

12:15 pm
October 10, 2008


VertigoSol

Moderator

posts 26

3

Probably would want to hide the TabBarController and then add a UIToolbar to to subview. You probably wouldnt be able to do
this kind of action with a single nib file since the UITabBarController is attached to a UIWindow not a UIView

//table that is loaded

-(void) loadView
{
[super loadView]
myTabBarController.view.hidden = true;

CGRect rect = CGRectMake(….screen position)
UIToolBar* tb = [[UIToolBar alloc] initWithFrame:rect];
[thisClassview addSubview:tb];
[tb release];
}

I didnt try it myself but ill look at “the elements”


About the iCodeBlog forum

Currently Online:

5 Guests

Maximum Online: 25

Forums:

Groups: 2

Forums: 6

Topics: 199

Posts: 594

Members:

There are 370 members

There are 1 guests


Brandon has made 87 posts

Top Posters:

bobcubsfan - 52

crazyiez - 30

VertigoSol - 26

AdeC - 17

Uhu - 17

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)