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

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

问题描述

我刚刚安装了Xcode 4.5 for iOS6支持,我在Storyboard中看到了一个名为Exit的新图标,列在我的视图控制器下面,还有First Responder等。一个标有Exit的绿色小图标。

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:


展开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视频页面并观看在您的应用程序中采用故事板(它是排名第五)关于展开细分的讨论从时间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的占位符对象,用于展开seques。默认情况下,当
用户解除子场景时,该场景的视图控制器
展开(或返回)父场景 - 即
最初转换到子场景的场景。但是,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 docset) >常规>入门)




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

另一个更新:

以下是Apple发布的关于此主题的技术说明

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

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