且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

隐藏选项卡栏应用程序中的选项卡栏

更新时间:2022-06-15 22:21:49

要隐藏标签栏,您可以使用 hidesBottomBarWhenPushed 。例如:

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

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 nav bar you can use:

self.navigationController.navigationBarHidden = YES;