<tfoot id='mpwQV'></tfoot>

        <small id='mpwQV'></small><noframes id='mpwQV'>

        • <bdo id='mpwQV'></bdo><ul id='mpwQV'></ul>
        <legend id='mpwQV'><style id='mpwQV'><dir id='mpwQV'><q id='mpwQV'></q></dir></style></legend>
        <i id='mpwQV'><tr id='mpwQV'><dt id='mpwQV'><q id='mpwQV'><span id='mpwQV'><b id='mpwQV'><form id='mpwQV'><ins id='mpwQV'></ins><ul id='mpwQV'></ul><sub id='mpwQV'></sub></form><legend id='mpwQV'></legend><bdo id='mpwQV'><pre id='mpwQV'><center id='mpwQV'></center></pre></bdo></b><th id='mpwQV'></th></span></q></dt></tr></i><div id='mpwQV'><tfoot id='mpwQV'></tfoot><dl id='mpwQV'><fieldset id='mpwQV'></fieldset></dl></div>
      1. iOS - pushViewController 与 presentModalViewController 的区别

        iOS - pushViewController vs presentModalViewController difference(iOS - pushViewController 与 presentModalViewController 的区别)

          <legend id='z1MPR'><style id='z1MPR'><dir id='z1MPR'><q id='z1MPR'></q></dir></style></legend>

              <tbody id='z1MPR'></tbody>
            <tfoot id='z1MPR'></tfoot>

            <small id='z1MPR'></small><noframes id='z1MPR'>

              <bdo id='z1MPR'></bdo><ul id='z1MPR'></ul>
              • <i id='z1MPR'><tr id='z1MPR'><dt id='z1MPR'><q id='z1MPR'><span id='z1MPR'><b id='z1MPR'><form id='z1MPR'><ins id='z1MPR'></ins><ul id='z1MPR'></ul><sub id='z1MPR'></sub></form><legend id='z1MPR'></legend><bdo id='z1MPR'><pre id='z1MPR'><center id='z1MPR'></center></pre></bdo></b><th id='z1MPR'></th></span></q></dt></tr></i><div id='z1MPR'><tfoot id='z1MPR'></tfoot><dl id='z1MPR'><fieldset id='z1MPR'></fieldset></dl></div>

                  本文介绍了iOS - pushViewController 与 presentModalViewController 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  调用 presentModalViewControllerpushViewController 有什么区别,当:

                  What is the difference beetween calling presentModalViewController and pushViewController, when :

                  • animation 设置为 NO(即使是,也只是可以更改的动画样式).
                  • 在呈现模态视图时定义了一个导航控制器,因此它也可以通过调用堆栈进行导航......

                  这只是为了能够从第一个推送视图返回吗?呜呜呜……

                  Is this just to be able to go back from the first pushed view ? Woooaaaaaa.....

                  我想区别在别处和更深的地方.没有?

                  I guess the difference is elsewhere and deeper. No ?

                  推荐答案

                  最重要的区别在于语义.模态视图控制器通常指示用户必须提供一些信息或做某事.此链接更深入地解释它:http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html

                  The most important difference is about semantics. Modal view controllers typically indicate that the user has to provide some information or do something. This link explains it more in depth: http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html

                  这是他们谈论的另一个不太抽象的区别:

                  Here's another, less abstract difference they talk about:

                  "当你呈现一个模态视图控制器时,系统会在执行呈现的视图控制器和被呈现的视图控制器之间创建父子关系.具体来说,执行呈现的视图控制器将其 modalViewController 属性更新为指向其呈现的(子)视图控制器.类似地,呈现的视图控制器更新其 parentViewController 属性以指向呈现它的视图控制器."

                  "When you present a modal view controller, the system creates a parent-child relationship between the view controller that did the presenting and the view controller that was presented. Specifically, the view controller that did the presenting updates its modalViewController property to point to its presented (child) view controller. Similarly, the presented view controller updates its parentViewController property to point back to the view controller that presented it."

                  另请参阅此主题:为什么要呈现模态视图控制器"?

                  这篇关于iOS - pushViewController 与 presentModalViewController 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone(UISplitViewController 内的 UITabBarController 内的 UINavigationController 以模态方式呈现在 iPhone 上) - IT屋-程序员软件开发技术分
                  ViewController in UINavigationController orientation change(UINavigationController 中的 ViewController 方向更改)
                  Custom back button in UINavigationController(UINavigationController 中的自定义后退按钮)
                  How to add a navigation controller programmatically in code but not as initial view controller(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                  The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)
                  View being blocked by UITransitionView after being presented(呈现后被 UITransitionView 阻止的视图)

                      <tbody id='qWdIy'></tbody>
                        • <bdo id='qWdIy'></bdo><ul id='qWdIy'></ul>

                          <small id='qWdIy'></small><noframes id='qWdIy'>

                          1. <tfoot id='qWdIy'></tfoot>

                            <legend id='qWdIy'><style id='qWdIy'><dir id='qWdIy'><q id='qWdIy'></q></dir></style></legend>

                            <i id='qWdIy'><tr id='qWdIy'><dt id='qWdIy'><q id='qWdIy'><span id='qWdIy'><b id='qWdIy'><form id='qWdIy'><ins id='qWdIy'></ins><ul id='qWdIy'></ul><sub id='qWdIy'></sub></form><legend id='qWdIy'></legend><bdo id='qWdIy'><pre id='qWdIy'><center id='qWdIy'></center></pre></bdo></b><th id='qWdIy'></th></span></q></dt></tr></i><div id='qWdIy'><tfoot id='qWdIy'></tfoot><dl id='qWdIy'><fieldset id='qWdIy'></fieldset></dl></div>