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

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

    • <bdo id='sDX59'></bdo><ul id='sDX59'></ul>

    1. iOS 5 故事板,以编程方式确定路径

      时间:2023-06-01

        <tbody id='WyPa2'></tbody>
      • <tfoot id='WyPa2'></tfoot>

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

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

            <bdo id='WyPa2'></bdo><ul id='WyPa2'></ul>

                本文介绍了iOS 5 故事板,以编程方式确定路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我无法使用情节提要实现以下目标:

                I'm having trouble to achieve the following using a storyboard:

                设置未完成时:运行应用程序 -> 显示设置视图控制器 -> 显示主导航控制器设置完成后:运行应用程序 -> 显示主导航控制器

                When setup is not done: run app -> show settings view controller -> show main navigation controller When setup is done: run app -> show main navigation controller

                所以基本上,我希望应用程序在某些情况下以编程方式从设置视图开始,否则直接跳到主导航控制器.

                So basically, I want the app to programmatically start with the settings view in certain cases, and otherwise skip right ahead to the main navigation controller.

                我确实设法通过主导航控制器的模态样式segue 显示设置视图,但我不知道如何在主导航控制器显示之前显示它.有什么想法吗?

                I did manage to show the settings view with a modal style segue from the main navigation controller, but I don't know how to display it before the main navigation controller is displayed. Any ideas?

                推荐答案

                我设法做到了一点不同:

                I managed to do it a bit different:

                1. 使用 UINavigationController 作为初始视图控制器.
                2. 创建一个根视图控制器来管理加载内容的决定.
                3. 创建从根视图控制器到主视图和设置视图的 Storyboard Segue,并为这些 segue 提供适当的标识符.
                4. 使用根视图控制器中的正确标识符调用 performSegueWithIdentifier.
                1. Use a UINavigationController as the initial view controller.
                2. Create a root view controller that will manage the decision of what to load.
                3. Create a Storyboard Segues from the root view controller to the main view and to settings view, and give the segues proper identifiers.
                4. Call the performSegueWithIdentifier with the proper identifier from your root view controller.

                只是另一种解决方案,希望对您有所帮助.

                Just another solution, hope this helps.

                这篇关于iOS 5 故事板,以编程方式确定路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:图标已经包含光泽效果 下一篇:停止 segue 并显示警报

                相关文章

                最新文章

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

                  <legend id='k9FiG'><style id='k9FiG'><dir id='k9FiG'><q id='k9FiG'></q></dir></style></legend>
                  • <bdo id='k9FiG'></bdo><ul id='k9FiG'></ul>
                2. <tfoot id='k9FiG'></tfoot>