如何以编程方式执行Unwind segue?

编程入门 行业动态 更新时间:2024-10-23 05:37:57
本文介绍了如何以编程方式执行Unwind segue?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用故事板这很容易。您只需将操作拖动到退出即可。但是我该如何从我的代码中调用它?

Using storyboard this is very easy. You just drag the action to "Exit". But how should I call it from my code?

推荐答案

  • 创建手动segue( ctrl -drag从文件所有者退出),
  • 在左侧控制器菜单中选择绿色EXIT按钮。
  • Create a manual segue (ctrl-drag from File’s Owner to Exit),
  • Choose it in the Left Controller Menu below green EXIT button.
  • 插入Segue的名称以放松。

    Insert Name of Segue to unwind.

    然后, - (void)performSegueWithIdentifier:(NSString *)标识符发件人:(id)发件人。带有您的segue标识。

    Then,- (void)performSegueWithIdentifier:(NSString *)identifier sender:(id)sender. with your segue identify.

    更多推荐

    如何以编程方式执行Unwind segue?

    本文发布于:2023-11-26 00:04:56,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1631872.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:方式   Unwind   segue

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!