views:

402

answers:

4

I am trying to make a program with three subviews after the title screen. Two of the views are just standard nib files with UIViewController subclassed to control them, and the third is a Tab Bar view. I can't seem to get the tab bar items to display though. I walked through the Tab bar chapter in "Beginning iPhone Development" which adds the Tab Bar Controller right off the bat as a subview of Window in the app delegate and that works fine. What I want to do though is load up my rootView controller after the third section was chosen from the title screen and then add a Tab Bar view to that. Every time I do this though I get a blank Tab Bar with no tab bar items.

Any help you can provide would be greatly appreciated seeing as I've been working at this for a few days now.

Thanks

A: 

this is by design, it's stated in the doc.

CiNN
Why without any reference?
Aviad Ben Dov
+1  A: 

You can't push a tab bar controller to a navigation controller, which I assume is what you're trying to do. However, you can use a plain UITabBar and implement your own view switching in a UIViewController subclass (rather than a UITabBarController). See this related question.

Daniel Dickison
A: 

Hi Ron, Did you find any fix/solution of your problem? If yes, please let me know. I am having similar issue in my application. Regards, Kuma-

Kuma-
Yes I did find a fix. I manually added a tab bar controller and made the controller class it was in a UITabBarDelegate. Check out UITabBar and UITabBarDelegate Protocol reference in the apple documentation. If you are still having issues after looking at them let me know and I will set you up with some sample code.
Ron Dear
A: 

Hi Ron, I'm also having the same issue. I just do not know where to link the tab bar controller to. Could you tell me about that?

pls contact me by email: [email protected]

Thanks a lot!

steven
This sound like you are asking a new question, not answering this one. So ask it as a new question ("Ask question" button in the top right of the page). And nobody is going to contact you by email (besides spammers).
sth