Xcode 4.5 故事板“退出" [英] Xcode 4.5 Storyboard 'Exit'

查看:29
本文介绍了Xcode 4.5 故事板“退出"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了支持 iOS6 的 Xcode 4.5,我在我的故事板中看到了一个名为退出"的新图标,它列在我的视图控制器和第一响应者"等下方.一个标有退出"的绿色小图标.

I have just installed Xcode 4.5 for iOS6 support, and I have seen a new icon called 'Exit' in my Storyboard, listed under my view controllers along with 'First Responder' etc. A little green icon labeled 'Exit'.

我可以在上面找到任何东西,也不知道如何使用它.

I can find anything on it nor work out how it can be used.

有人了解它吗,它是如何工作的,它的用途是什么?

Anyone know anything about it, how it works, what its for?

推荐答案

这称为Unwind Segue".不幸的是,到目前为止,除了简要提及 XCode 4.5 新功能列表外,还没有相关文档:

This is called an "Unwind Segue". Unfortunately there's no documentation for this so far except a brief mention on XCode 4.5 new features list that states:

Unwind segues 可以允许过渡到现有的场景实例在故事板中

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

好消息是 WWDC 2012 有一个会议解释这些生物(除其他外).

The good news is that there is a session from WWDC 2012 explaining those creatures (among other things).

您只需使用您的开发者帐户详细信息登录 Apple 的 iOS 开发中心,然后转到 WWDC 2012 视频页面 并观看在您的应用程序中采用 Storyboard"(从顶部倒数第五个) 对 unwind segues 的讨论从时间 37:20 开始.

You can just login to Apple's iOS Dev Center with your developer account details and then go to the WWDC 2012 videos page and watch "Adopting Storyboard in your App" (it's fifth from the top) The discussion of unwind segues starts at time 37:20.

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

Update: Here is some more info on the subject from Apple's documentation

一个名为 Exit 的占位符对象,用于展开序列.默认情况下,当用户关闭子场景,即该场景的视图控制器展开(或返回)到父场景——即最初过渡到儿童场景.但是,退出对象使视图控制器能够展开到任意场景.

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 文档集 > 常规 > 入门)

这里有一个很好的例子说明如何实现一个

另一个更新:

这是 Apple 提供的关于此主题的技术说明.

这篇关于Xcode 4.5 故事板“退出"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆