iphone - 隐藏模态选项卡栏 Controller - 从 View Controller 内的选项卡栏 Controller 中

标签 iphone uiviewcontroller uinavigationcontroller uitabbarcontroller uinavigationbar

我的第一个 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/

相关文章:

ios - 如何加载所有 View Controller Storyboard,但跳过自然顺序并直接转到特定 View ?

ios - 创建 UIViewController 的多个实例

iphone - 目标指定产品类型 'com.apple.product-type.framework'

iphone - 无法设置 NSUserDefaults 字段

iphone - 在 iOS 中将 HTML 转换为 NSAttributedString

iphone - 如何缩放 iOS 绘图应用程序?

iOS - 如何从 UITableViewCell 呈现不同的场景

ios - UIWebView IBOutlet 连接问题

ios - navigationBar.IntrinsicContentSize.height 与实际栏的大小不匹配

iphone - 奇怪的 UINavigationController 导航栏行为是否是由于内存泄漏造成的?