如何以编程方式执行 Unwind segue? [英] How to perform Unwind segue programmatically?
本文介绍了如何以编程方式执行 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文