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

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

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

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

推荐答案

  • 创建手动转场(ctrl-从文件所有者拖动到退出),
  • 在绿色退出按钮下方的左侧控制器菜单中选择它.
  • 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 *)identifier sender:(id)sender. 使用您的 segue 标识.

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

    更多推荐

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

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

    发布评论

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

    >www.elefans.com

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