我想在横向显示没有选项卡栏的另一个视图。
所以我创建一个新视图,只更改self.view
and
self.hidesBottomBarWhenPushed = YES;
但这对我不起作用。希望有人能帮忙吗?
只需将这一行添加到您的viewWillAppear:
您的隐藏视图的方法UITabBar
[self.tabBarController.tabBar setHidden:YES];
并将新视图设置为 RootViewController 只需使用下面的代码...
YourNewViewController *objView = [[YourNewViewController alloc] initWithNibName:@"YourNewViewController" bundle:nil];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:objView];
[self presentModalViewController:nav animated:YES];
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)