XCode 4.2 故事构建器的“定义上下文”和“提供上下文”是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8841881/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does XCode 4.2 story builder's "Defines Context" and "Provide Context" mean?
提问by Tomer Even
In the Navigation Controller Attributes Inspector under View Controller section there are the "Defines Context" and "Provide Context" check boxes.
在视图控制器部分下的导航控制器属性检查器中,有“定义上下文”和“提供上下文”复选框。
I cant find any documentation on this features. How to use it and what does it do?
我找不到有关此功能的任何文档。如何使用它以及它有什么作用?
采纳答案by rob mayoff
The "Defines Context" checkbox sets the definesPresentationContext
property of the view controller. The "Provides Context" checkbox sets the providesPresentationContextTransitionStyle
property.
“定义上下文”复选框设置definesPresentationContext
视图控制器的属性。“提供上下文”复选框设置providesPresentationContextTransitionStyle
属性。
If you want to learn more about these properties, watch WWDC 2011 Session 102: Implementing UIViewController Containment.
如果您想了解有关这些属性的更多信息,请观看WWDC 2011 Session 102:Implementing UIViewController Containment。