2016-08-13 49 views
0

我在Main.storyboard中包含了所有這些內容。
NavigationController> ViewOneController> ViewTwoController在UIAlertController中執行segue(展開?)

在ViewController2的遊戲結束時,我想通過在我的UIAlertAction中使用segue返回到ViewController1。

我明白我把代碼留在UIAlertAction處理程序中。然後:

{ // some segue function }

如何鏈接這回ViewController1在那裏我可以開始新的遊戲?

我不知道在ViewController1.m中鍵入哪個segue,這是一個unwindSegue,我將如何鏈接它們?

謝謝。

回答

0

你不是很清楚,但我猜你想放鬆回到最初的ViewController。試試這個:

Objective-C

Objective-C code

Swift 3

Swift 3 code

+0

謝謝。工作得很好。 –