我的第一个 View 有一个时髦的菜单。然后,当您选择一个菜单项时,它会执行 [selfpresentModalViewController:tbcanimated:YES];
(tbc 是一个标签栏 Controller ,其中有 5 个导航 Controller )。
在每个导航 Controller 中,导航栏中都有一个“主页”图标。
我希望能够链接此按钮以执行与 presentModalViewController:animated:
相反的操作并显示时髦的原始菜单系统。
有什么办法可以做到这一点吗?
谢谢。
最佳答案
我可以建议您使用以下代码
-(void)homeButtonClicked { [self.navigationController解雇ModalViewControllerAnimated:NO]; [funkyTabbarController setSelectedIndex:0];
}
请尝试一下。
关于iphone - 隐藏模态选项卡栏 Controller - 从 View Controller 内的选项卡栏 Controller 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3658572/