Since I start my application with a tab based, now I want to disable entire tab bars,How can I achieve this? Here my code in Appdelegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIViewController *viewController1 = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
UIViewController *viewController2 = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
UIViewController *viewController3=[[temptable alloc]initWithNibName:@"temptable" bundle:nil];
UIViewController *viewController4=[[about alloc]initWithNibName:@"about" bundle:nil];
self.tabBarController = [[UITabBarController alloc] init];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2,viewController3,viewController4, nil];
self.window.rootViewController=[self tabBarController];
//self.window.rootViewController =viewController2;
[self.window makeKeyAndVisible];
return YES;
}
I just want to hide the entire tab bars and want to make viewController2 as main page with navigation controller. Can anyone help out for this?
Try using this two methods, which I have used to hide & show the tabbar