• <small id='FrfAy'></small><noframes id='FrfAy'>

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

    1. <legend id='FrfAy'><style id='FrfAy'><dir id='FrfAy'><q id='FrfAy'></q></dir></style></legend>
          <bdo id='FrfAy'></bdo><ul id='FrfAy'></ul>

      1. 在应用程序中有一个 UITabBar 和一个 UINavigationController?

        时间:2023-06-12

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

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

                <tfoot id='SLaZP'></tfoot>

                1. 本文介绍了在应用程序中有一个 UITabBar 和一个 UINavigationController?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  大家好,我是 iPhone 开发的新手,我不了解整个 UINavigationController 和 UITabBarController 的想法.一个可以替代另一个 - Tweetie 等应用如何将两者结合起来?

                  Hey everyone, I am new to iPhone development and I'm not understanding the whole UINavigationController and UITabBarController idea. Is one a substitute for the other - how do apps such as Tweetie combine both?

                  我想让我的应用程序在底部有一个持久的标签栏(这似乎正在工作),但在顶部还有一个导航栏,可以在不移除标签栏的情况下将视图推送/弹出到屏幕上.

                  I'd like to have my app have a persistent Tab Bar @ the bottom (which seems to be working), but also a Navigation bar at the top which can push/pop views onto the screen without removing the tab bar.

                  • 我怎样才能做到这一点?
                  • 就所有这些控制器而言,就我的 MainWindow.xib 而言,IB 中的层次结构应该是什么样的?
                  • 这里的最佳做法是什么?

                  非常感谢,

                  推荐答案

                  只需将视图控制器包装在 UINavigationController 中,并将 UINavigationController 放入 UITabBar.这对你来说很好......

                  Just wrap the view controller inside the UINavigationController and Place the UINavigationController inside the UITabBar. This will work fine for you…

                  例子:

                  NSMutableArray *tabBarViewControllers = [[NSMutableArray alloc] initWithCapacity:2];
                  
                  tabBarController = [[UITabBarController alloc] init];
                  [tabBarController setDelegate:self];
                  
                  UINavigationController *navigationController = nil;
                  navigationController = [[UINavigationController alloc] initWithRootViewController:<Your View controller1>];
                  [tabBarViewControllers addObject:navigationController];
                  [navigationController release];
                  navigationController = nil;
                  
                  navigationController = [[UINavigationController alloc] initWithRootViewController:<Your View controller2>];
                  [tabBarViewControllers addObject:navigationController];
                  [navigationController release];
                  navigationController = nil;
                  
                  tabBarController = tabBarViewControllers;
                  [tabBarViewControllers release];
                  tabBarViewControllers = nil;
                  

                  这篇关于在应用程序中有一个 UITabBar 和一个 UINavigationController?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

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

                    <legend id='d2X5u'><style id='d2X5u'><dir id='d2X5u'><q id='d2X5u'></q></dir></style></legend>
                      <bdo id='d2X5u'></bdo><ul id='d2X5u'></ul>
                        <tbody id='d2X5u'></tbody>
                    • <small id='d2X5u'></small><noframes id='d2X5u'>