简体   繁体   English

甚至在NavigationController Swift中搜索时,TabBar也会消失

[英]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保持显示状态(见图)。

  • My segue is on Show. 我的表演正在表演中。
  • My view is embed in a UINavigationController that is root controller at my UITabBarController . 我的视图嵌入在UINavigationController ,它是UITabBarController根控制器。
  • "Show navigation bar" is turned off on my 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

Please make Segue kind as "Show". 请将Segue设为“显示”。 When select as "Show Detail", the ViewController is present over the Tabbar and hides it. 当选择为“显示详细信息”时,ViewController将显示在选项卡上方并隐藏它。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当segue到另一个ViewController时,TabBar嵌入式NavigationController栏会消失 - TabBar embedded NavigationController bar disappears when segue to another ViewController Push Segue 后 TabBar 消失 - TabBar disappear after Push Segue 当程序化搜索时,TabBar消失 - TabBar disappears when programatic segue TabBar 在 Segue 之后消失(Swift - Xcode) - TabBar disappears after Segue (Swift - Xcode) 如何在 Swift 5 中不带导航栏的情况下从 NavigationController 转到 TabBarController? - How to Segue from a NavigationController to a TabBarController without taking the Navbar with it in Swift 5? Swift-从NavigationController中的UIViewController到TabBarController中的UIViewController的筛选 - Swift - Segue from UIViewController within NavigationController to UIViewController within TabBarController Swift 2.0中的Custom Segue:destinationViewController的navigationController属性返回nil - Custom Segue in Swift 2.0 : destinationViewController's navigationController property returning nil 在选项卡项目中执行Segue时维护TabBar - Maintaining TabBar when performing Segue in the tab item 在导航控制器中推送控制器时如何隐藏父标签栏 - How to hide parent tabbar when pushing controller in navigationController 为什么在推送序列时ViewController包含NavigationController时未声明? - Why does a ViewController not declare when it contains a NavigationController when pushing a segue?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM