展开Segue隐藏标签栏 [英] Unwind Segue Hides Tab Bar
问题描述
我的布局如下:
- 标签栏控制器
- 导航控制器
- View Controller 1
- View Controller 2
我当前正在尝试将View Controller 2的Segue展开到View Controller1.Segue起作用,但是选项卡栏消失了.有什么方法可以强制我在不删除导航控制器的情况下保留选项卡栏.我已经尝试了以下方法:
I am currently trying to unwind segue from View Controller 2 to View Controller 1. The segue works however the tab bar disappears. Is there any way where I can force the tab bar to remain without removing the navigation controller. I have already tried the follow:
- 将tabBar.isHidden属性设置为false
- 取消选中推送时的隐藏底栏
还有其他想法吗?任何帮助将不胜感激.
Any other ideas? Any help will be greatly appreciated.
推荐答案
如果我正确理解你的故事板是这样的:
If I right understand you have storyboard like this:
我不想肤浅,但是您不需要放松.如果不是这样,请发布情节提要以提供正确的解决方案.
I don't want to be superficial, but you don't need unwindsegue. If is not like this, post your storyboard to give you the right solution.
这篇关于展开Segue隐藏标签栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!