本文介绍了如何以编程方式执行Unwind segue?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
创建手动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.
使用故事板这很容易。您只需将操作拖动到退出即可。但是我该如何从我的代码中调用它?
Using storyboard this is very easy. You just drag the action to "Exit". But how should I call it from my code?
推荐答案
插入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?
发布评论