Navigation bar not displayed if Tabbar used in a view

Posted by iPhoneDev on Stack Overflow See other posts from Stack Overflow or by iPhoneDev
Published on 2010-05-18T07:36:11Z Indexed on 2010/05/18 7:40 UTC
Read the original article Hit count: 305

Filed under:

Hello, My App is Navigation based template. Only one view requires Tab Bar. So I programmatically add a UITabBar in view as:

tbc = [[UITabBarController alloc] initWithNibName:nil bundle:nil];

tbc.viewControllers = [NSArray arrayWithObjects:blueController, redController, nil]; tbc.selectedViewController = redController;

[self presentModalViewController:tbc animated:YES];

But I am unable to get "Navigation Bar" at top in this view. Can any one help to know how I can have Tabs in bottom and navigation bar in top. Please help it I am not able to find the solution.

© Stack Overflow or respective owner

Related posts about iphone