Actually I am having a UITabBar Now I am pushing a instance of UIViewController on That Controller I need a Different TabBar How to Do that Can anyone Explain With Code
A:
It is not a good idea to have multiple tab bars and contradicts Apple's human interface guidelines
If you want to insert a new tab, just instantiate your view controller and add it to the viewControllers property of the UITabBarController:
YourViewController *yourViewControllerInstance = [[YourViewController alloc] init];
NSMutableArray *vcs = [NSMutableArray arrayWithArray:tabBarController.viewControllers];
[vcs addObject: yourViewControllerInstance];
[yourViewControllerInstance release];
[tabBarController setViewControllers:[NSArray arrayWithArray:vcs] animated:YES];
muffix
2010-10-19 10:24:03
Hey Thanks But My question is I am having a UITabBar by clicking on UITabBarItem I am pushing a instance of UIViewController This view Should have a Another UITabbar(Different from Previousone)
Er.Priyank Maheshwari
2010-10-19 10:31:23
I am having a mainScreen on that I am having a UITabBar and a TableView On Clicking on the TableViewCell I am pushing another ViewController I need a different UITabBar on that ViewController
Er.Priyank Maheshwari
2010-10-19 10:38:10
According to Apple, UITabBars must be inserted as the root view of your UIWindow. You shouldn't have a second one and Apple explicitly says that UITabBars should not be added to another view controller: http://developer.apple.com/library/ios/documentation/uikit/reference/UITabBarController_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006931-CH3-SW13
muffix
2010-10-19 10:39:41