跳转界面,隐藏tabbar
作者:
Gary_fei | 来源:发表于
2016-10-24 13:51 被阅读0次废话不多说,直接上代码
// 1.先设置tabbarContriller的tabBar.hidden = YES;
self.tabbarController.tabBar.hidden = YES;
// nav的push后需要隐藏tabBar
self.hidesBottomBarWhenPushed = YES;
HelpVC *vcHelp = [[HelpVC alloc]initWithNibName:HELP_XIB bundle:nil];
[self.navigationController pushViewController:vcHelp animated:YES];
// 3. 在nav的push后再重新设置NO,这样nav的pop回来时候,tabor会恢复正常显示
self.hidesBottomBarWhenPushed = NO;
本文标题:跳转界面,隐藏tabbar
本文链接:https://www.haomeiwen.com/subject/iyqluttx.html
网友评论