好吧,我面临着误解。
我希望当我从“历史记录”按钮进行转场时,我的 UITabBar
保持显示(见图)。
- 我的 segue 正在显示。
- 我的 View 嵌入在
UINavigationController
中,它是我的UITabBarController
的根 Controller 。 - 我的
UINavigationController
上的“显示导航栏”已关闭。
尽管如此,我的 segue 上出现灰屏,并且没有 UITabBar
...
提前谢谢您!
最佳答案
尝试创建一个弹出 View 。 在 Storyboard中,请记住为您要使用的 View Controller 设置标识符。然后删除segue。
let customAlert = self.storyboard?.instantiateViewController(withIdentifier: "view") as! yourViewController
self.addChild(customAlert)
self.view.addSubview(customAlert.view)
customAlert.view.backgroundColor = UIColor.white
关于ios - 当 segue 甚至 NavigationController Swift 时,TabBar 消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55133728/