在基于选项卡的iPhone应用程序中,如何在某些ViewController中隐藏选项卡栏?
我有一个基于标签栏的iPhone应用程序 该应用程序由两个选项卡组成。 每个选项卡都有一个带有3个视图控制器的导航控制器在基于选项卡的iPhone应用程序中,如何在某些ViewController中隐藏选项卡栏?,iphone,uitabbarcontroller,Iphone,Uitabbarcontroller,我有一个基于标签栏的iPhone应用程序 该应用程序由两个选项卡组成。 每个选项卡都有一个带有3个视图控制器的导航控制器 如何防止选项卡栏显示在其中一个ViewController中(因为它已经有了自己的选项卡栏导航)?发现这一点,请相信原始postert: self.hidesBottomBarWhenPushed=YES谢谢! - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)
如何防止选项卡栏显示在其中一个ViewController中(因为它已经有了自己的选项卡栏导航)?发现这一点,请相信原始postert:
self.hidesBottomBarWhenPushed=YES代码>谢谢!
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
if (appDelegate.navigationController.navigationBar.hidden == NO)
{
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES];
[appDelegate.navigationController setNavigationBarHidden:YES animated:YES];
[UIView beginAnimations:@"HideTabbar" context:nil];
[UIView setAnimationDuration:.2];
self.view.frame = CGRectMake(0,0,320,480);
[UIView commitAnimations];
}
if (appDelegate.navigationController.navigationBar.hidden == YES)
{
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:YES];
[appDelegate.navigationController setNavigationBarHidden:NO animated:YES];
[UIView beginAnimations:@"ShowTabbar" context:nil];
[UIView setAnimationDuration:.2];
self.view.frame = CGRectMake(0,0,320,368);
[UIView commitAnimations];
}
}