ios - 快速返回上一个 segue 而不会丢失标签栏 Controller

标签 ios swift segue show

我也使用 show(e.g.push) segue 来显示标签栏 Controller , 但我无法回到以前的事件。 这是用于模态转场:

dismissViewControllerAnimated(true, completion: nil)

谢谢。

enter image description here

enter image description here

enter image description here

最佳答案

我在我想返回的 Controller 中创建了一个 unwind 方法。

@IBAction func cancelToPlayersViewController(segue:UIStoryboardSegue) {

}

然后将导航栏按钮连接到 DetailViewController 的退出项

i followed this tutorial

关于ios - 快速返回上一个 segue 而不会丢失标签栏 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28276578/

相关文章:

ios - 快速从 view2 导航回 view1

ios - 单个 View Controller 的多个按钮

ios - 在 [self.navigationController popToRootViewControllerAnimated :YES]; 期间分配变量

ios - 检查系统时间是自动的还是用户设置的

ios - 向 Xcode 属性检查器添加自定义颜色

ios - 从 Firebase 检索数据后对其进行操作

ios - CLGeoCoder 没有以正确的顺序附加地标

macos - 使用 segue 时在 Cocoa 应用程序中打开“首选项 Pane ”的无限窗口

ios - 启用允许任意加载应用程序传输安全设置在 XCODE 9.2 和 iOS 11.2 中不起作用

ios - 如何在swift中声明全局变量