ios6和Xcode 4.5有一个叫做“Unwind Segue”的新功能:
Unwind segue允许转换到故事板中已有的场景实例
除了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
unwind segue是如何工作的,它们可以用来做什么?