返回上一个segue而不会在swift中丢失tabbar控制器

时间:2015-02-02 11:19:50

标签: ios swift segue show

我使用show(egpush)segue来显示tabbar控制器, 但我无法回到以前的事件。 这是模态segue:

dismissViewControllerAnimated(true, completion: nil)

感谢。

enter image description here

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:3)

我在控制器中创建了一个我想要返回的展开方法。

@IBAction func cancelToPlayersViewController(segue:UIStoryboardSegue) {

}

然后将导航栏按钮连接到DetailViewController

的Exit项

i followed this tutorial