0

我的 Main.storyboard 中有所有这些。
NavigationController > ViewOneController > ViewTwoController

在 ViewController2 中的游戏结束时,我想通过在 UIAlertAction 中使用 segue 来返回 ViewController1。

我知道我将代码留在 UIAlertAction 处理程序中。然后:

{ // some segue function }

如何将其链接回 ViewController1 以开始新游戏?

我不知道在 ViewController1.m 中输入哪个 segue,这是一个 unwindSegue,我将如何链接它们?

谢谢。

4

1 回答 1

0

你不是很清楚,但我猜你想放松回到最初的 ViewController。试试这个:

Objective-C

Objective-C 代码

Swift 3

斯威夫特 3 代码

于 2016-08-13T20:03:41.687 回答