什么是Unwind segues,您如何使用它们?

。_饼干妹妹 提交于 2020-08-14 16:38:26

问题:

iOS 6 and Xcode 4.5 has a new feature referred to as "Unwind Segue": iOS 6和Xcode 4.5具有称为“ Unwind Segue”的新功能:

Unwind segues can allow transitioning to existing instances of scenes in a storyboard 放开序列可以允许过渡到情节提要中场景的现有实例

In addition to this brief entry in Xcode 4.5's release notes, UIViewController now seem to have a couple of new methods: 除了Xcode 4.5发行说明中的​​这一简短条目之外,UIViewController现在似乎还有一些新方法:

- (BOOL)canPerformUnwindSegueAction:(SEL)action fromViewController:(UIViewController *)fromViewController withSender:(id)sender
- (UIViewController *)viewControllerForUnwindSegueAction:(SEL)action fromViewController:(UIViewController *)fromViewController withSender:(id)sender
- (UIStoryboardSegue *)segueForUnwindingToViewController:(UIViewController *)toViewController fromViewController:(UIViewController *)fromViewController identifier:(NSString *)identifier

How do unwind segues work and what they can be used for? 放松搜寻的工作方式以及它们的用途是什么?


解决方案:

参考一: https://stackoom.com/question/qhsd/什么是Unwind-segues-您如何使用它们
参考二: https://oldbug.net/q/qhsd/What-are-Unwind-segues-for-and-how-do-you-use-them
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!