【问题标题】:Performing segue (unwind?) in an UIAlertController在 UIAlertController 中执行 segue(展开?)
【发布时间】:2016-08-13 19:23:37
【问题描述】:

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

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

我了解我将代码留在 UIAlertAction 处理程序中。那么:

{ // some segue function }

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

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

谢谢。

【问题讨论】:

    标签: objective-c segue uialertaction


    【解决方案1】:

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

    Objective-C

    Swift 3

    【讨论】:

    • 谢谢。效果很好。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多