所以目前我的应用程序有问题。所以我有一个有 2 个“页面”的 UITabBarController。第一页名为 AddExpense(其类为 AddExpenseViewController),有一个按钮可连接到名为 PicExpense(其类为 PicExpenseViewController)的场景,该按钮未与 UITabBarController 链接。我遇到的问题是,当我尝试从 PicExpenseViewController BACK TO 继续 AddExpenseViewController 时。我目前正在使用这段代码进行回溯:
performSegueWithIdentifier("segueBackToAddExpense", sender: nil)
这工作正常,但 UITabBar 被隐藏了。这是我的 StoryBoard 的图片,供我引用:StoryBoard image here ,请注意,只有 AddExpense 和 Receipt Picture View Controller 与这个问题相关,但如果有人有兴趣查看所有内容以获得他们的答案或帮助我,我会拍下整个事情的照片。
我对同一个问题做了一些研究,但我已经尝试过这些答案,例如 StoryBoard 中 View 的属性检查器上的“推送时隐藏底部栏”复选框。 Here is the Attributes Selector View我的 StoryBoard 文件中的收据图片 View Controller 。
提前致谢
最佳答案
答案:@WilsonXJ 找到了我的问题的答案。我使用的是普通的“Show”Segues,但我需要使用“Unwind Segues”。
关于ios - 从 UITabBarController 场景转到 ViewController 并返回 "hides"UITabBar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37956839/