【发布时间】:2016-07-17 20:10:59
【问题描述】:
我有一个带有 NavigationBar 的 UITabBarController。在 NavigationBar 中是一个按钮,它使用 UINavigationController 实例化一个新的 UIViewController:self.presentViewController(nav, animated: true, completion: nil) 并且正如我所料,视图会以全屏显示。
等等,我的问题是:如何在不隐藏/重叠我的 Tabbar 的情况下呈现新的 UIViewController?
【问题讨论】:
-
你可以试试这样的东西吗:
self.tabBarController.selectedViewController.presentViewController(nav, animated: true, completion: nil)? -
谢谢,我试过了,但对我不起作用