iphone - Xcode 4.5 Storyboard 'Exit'

我刚刚安装了支持 iOS6 的 Xcode 4.5,我在 Storyboard 中看到了一个名为“Exit”的新图标,它与“First Responder”等一起列在我的 View Controller 下。一个标有“Exit”的绿色小图标。

我可以找到任何关于它的信息,也不知道如何使用它。它是如何工作的?

最佳答案

这称为“展开转场”。不幸的是,到目前为止,除了 XCode 4.5 新功能列表中的简短提及外,没有任何文档说明:

Unwind segues can allow transitioning to existing instances of scenes in a storyboard

好消息是 WWDC 2012 有一个 session 解释了这些生物(除其他外)。

您只需使用您的开发者帐户详细信息登录 Apple 的 iOS 开发中心,然后转到 WWDC 2012 videos page并观看“Adopting Storyboard in your App”(倒数第五个)关于 unwind segues 的讨论从 37:20 开始。


更新: 以下是 Apple 文档中有关该主题的更多信息

A placeholder object named Exit for unwinding seques. By default, when a user dismisses a child scene, the view controller for that scene unwinds (or returns) to the parent scene—that is the scene that originally transitioned to the child scene. However, the Exit object enables a view controller to unwind to an arbitrary scene.

(来自 iOS6 文档集 > 常规 > 入门)

And here is a nice example of how you can implement one


另一个更新:

Here is a technical note from Apple关于这个话题。

关于iphone - Xcode 4.5 Storyboard 'Exit',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12416050/

相关文章:

objective-c - iOS8 - 约束含糊地暗示高度为零

objective-c - iOS - 如何以编程方式设置 UISwitch

ios - 设置 UILabel 行距

iphone - Objective-C/Cocoa Touch 中的 HTML 字符解码

ios - 在单行 UILabel 旁边居中 NSTextAttachment 图像

ios - 检查 AVPlayer 的播放状态

ios - "From View Controller"使用 UIViewControllerCon

iphone - 关闭呈现的 View Controller

ios - UICollectionViewCell 上的长按手势

ios - 带有透明孔的 CALayer