ios - Unwind Segue 隐藏标签栏

标签 ios swift navigation uitabbarcontroller segue

我有以下布局:

  1. 标签栏 Controller
  2. 导航 Controller
  3. 查看 Controller 1
  4. 查看 Controller 2

我目前正在尝试将 segue 从 View Controller 2 解除到 View Controller 1。segue 有效,但选项卡栏消失了。有什么办法可以在不移除导航 Controller 的情况下强制保留标签栏。我已经尝试过以下方法:

  1. 将 tabBar.isHidden 属性设置为 false
  2. 取消选中推送时隐藏底栏

还有其他想法吗?任何帮助将不胜感激。

最佳答案

如果我没看错你有这样的 Storyboard:

enter image description here

我不想肤浅,但你不需要 unwindsegue。如果不是这样,请发布您的 Storyboard以提供正确的解决方案。

关于ios - Unwind Segue 隐藏标签栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47957054/

相关文章:

php - 如何在 echo 中打印 PHP 行

ios - 更改 Root View Controller 时如何释放以前的 View Controller ?

ios - 使用现有字符串作为 valueForKey 值

.net - iOS 应用程序的 WCF 或 Web 服务 (.asmx)?

swift - 无需用户交互即可调用 addTarget 中的 UIButton 选择器

ios - 在 TextView 中使用 separatedBy 函数获取范围

css - 使用 nav dt 淡入动画 Sprite

ios - UIImageView 完全包含另一个 ImageView

ios - 仅当发生碰撞时才运行 skaction

css - 彼此相邻的 Div 用于导航