簡體   English   中英

甚至在NavigationController Swift中搜索時,TabBar也會消失

[英]TabBar disappear when segue even NavigationController Swift

好吧,我面臨着誤會。 當我從“歷史記錄”按鈕進行搜索時,我希望UITabBar保持顯示狀態(見圖)。

  • 我的表演正在表演中。
  • 我的視圖嵌入在UINavigationController ,它是UITabBarController根控制器。
  • 我的UINavigationController上的“顯示導航欄”已關閉。

除此之外,我的segue上有一個灰色屏幕,沒有UITabBar ...

先感謝您!

我的情節提要結構的一部分

嘗試創建一個彈出視圖。 在情節提要中,請記住為您要使用的視圖控制器設置標識符。 然后刪除segue。

 let customAlert = self.storyboard?.instantiateViewController(withIdentifier: "view") as! yourViewController
    self.addChild(customAlert)
    self.view.addSubview(customAlert.view)
    customAlert.view.backgroundColor = UIColor.white

請將Segue設為“顯示”。 當選擇為“顯示詳細信息”時,ViewController將顯示在選項卡上方並隱藏它。

在此輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM