Hide tab bar in tab bar application

I created a new project from the template:

IPhoneOS> Application> Tab Bar Application.

I get two tabs.

How to make the second one become fullscreen, hiding the tab bar and even the status bar?

I tried to check "Wants full screen" - but it did not help.

(Much less important ... When I get the full screen, will I be back?)

Please give me simple code / recommendations or a link to them, because I am new to both the compiler and I had too many problems to aggravate the situation.

Thanks Asaf

+7
objective-c iphone uitabbarcontroller
source share
4 answers

To hide the tab bar, you can use hidesBottomBarWhenPushed . For example:

MyController *myController = [[MyController alloc]init]; myController.hidesBottomBarWhenPushed = YES; [self.navigationController pushViewController:myController animated:YES]; [myController release]; 

To hide the status bar, you can use:

 [[UIApplication sharedApplication] setStatusBarHidden:YES]; 

To hide the navigation bar, you can use:

 self.navigationController.navigationBarHidden = YES; 
+34
source share

You can simply use:

 //Navigation bar: self.navigationController.navigationBarHidden = YES; //Statusbar: [[UIApplication sharedApplication] setStatusBarHidden:YES]; //Tabbar: self.tabBarController.tabBar.hidden = YES; 
+18
source share

Have you checked the Modal View controllers?

http://developer.apple.com/iphone/library/featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html

Try using the currentModalViewController: animated method: on your navigation controller (instead of clicking the view controller)

 [self.navigationController presentModalViewController:foo animated:YES]; 
0
source share

Another way to achieve this is to make the UITabBarController rootViewController the UINavigationController. Then, when you pushViewControllerAnimated: the tab bar will slide with the root view controller.

0
source share

All Articles