[英]TabBar disappear when segue even NavigationController Swift
Well, I'm faced with misunderstanding. 好吧,我面临着误会。 I want my UITabBar
to stay displayed when I make a segue from my History button (see picture). 当我从“历史记录”按钮进行搜索时,我希望UITabBar
保持显示状态(见图)。
UINavigationController
that is root controller at my UITabBarController
. 我的视图嵌入在UINavigationController
,它是UITabBarController
根控制器。 UINavigationController
. 我的UINavigationController
上的“显示导航栏”已关闭。 And with all that, I have a grey screen on my segue and no UITabBar
... 除此之外,我的segue上有一个灰色屏幕,没有UITabBar
...
Thank you in advance! 先感谢您!
Try creating a popup view. 尝试创建一个弹出视图。 In the storyboard remember to set the identifier for the view controller that you are going to. 在情节提要中,请记住为您要使用的视图控制器设置标识符。 Then delete the segue. 然后删除segue。
let customAlert = self.storyboard?.instantiateViewController(withIdentifier: "view") as! yourViewController
self.addChild(customAlert)
self.view.addSubview(customAlert.view)
customAlert.view.backgroundColor = UIColor.white
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.