Navigation bar not displayed if Tabbar used in a view
- by iPhoneDev
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.