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

      1. <small id='YtD25'></small><noframes id='YtD25'>

        • <bdo id='YtD25'></bdo><ul id='YtD25'></ul>
      2. UINavigationController 上未出现后退按钮

        Back button not appearing on UINavigationController(UINavigationController 上未出现后退按钮)
      3. <i id='X4Xu0'><tr id='X4Xu0'><dt id='X4Xu0'><q id='X4Xu0'><span id='X4Xu0'><b id='X4Xu0'><form id='X4Xu0'><ins id='X4Xu0'></ins><ul id='X4Xu0'></ul><sub id='X4Xu0'></sub></form><legend id='X4Xu0'></legend><bdo id='X4Xu0'><pre id='X4Xu0'><center id='X4Xu0'></center></pre></bdo></b><th id='X4Xu0'></th></span></q></dt></tr></i><div id='X4Xu0'><tfoot id='X4Xu0'></tfoot><dl id='X4Xu0'><fieldset id='X4Xu0'></fieldset></dl></div>
      4. <small id='X4Xu0'></small><noframes id='X4Xu0'>

            <tbody id='X4Xu0'></tbody>
            <bdo id='X4Xu0'></bdo><ul id='X4Xu0'></ul>

          • <tfoot id='X4Xu0'></tfoot>

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

                  本文介绍了UINavigationController 上未出现后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的 AppDelegate 中有一个 UINavigationController 设置:

                  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {          
                      // Add the navigation controller's view to the window and display.
                      [self.window addSubview:navigationController.view];
                      [self.window makeKeyAndVisible];
                  
                      return YES;
                  }
                  

                  在我的 RootViewController 中,我将另一个视图推入堆栈:

                  //Show the deals
                      DealViewController *dvc = [[DealViewController alloc] initWithNibName:@"DealViewController" bundle:nil];
                      [self.navigationController.navigationBar setHidden:NO];
                      [self.navigationController pushViewController:dvc animated:YES];
                  

                  视图显示,但没有添加到我的导航栏的后退按钮.为什么会这样,我该如何解决?

                  The view shows up, but there is no back button that is added to my navigation bar. Why is this and how can I resolve it?

                  推荐答案

                  您必须将导航控制器视为一堆导航控制器,每个控制器控制一个充满信息的屏幕.您使用

                  You must think of the navigation controller as a stack of navigation controllers each controlling one screen full of information. You instantiate the navigation controller with the

                  -(id)initWithRootViewController:(UIViewController *)rootViewController
                  

                  方法.您在此调用中指定根视图控制器.然后像以前一样将导航控制器的视图作为子视图添加到窗口中.

                  method. You specify the root view controller in this call. Then you add the navigation controller's view as a subview to the window, like you did before.

                  如果你想显示你的第二个屏幕,你可以通过使用将另一个视图控制器推送到堆栈上

                  If you want to show your second screen you push another view controller on the stack by using

                  -(void)pushViewController:detailViewController animated:YES
                  

                  方法.

                  这篇关于UINavigationController 上未出现后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to add a navigation controller programmatically in code but not as initial view controller(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                  How to get the previous viewcontroller that pushed my current view(如何获取推送我当前视图的上一个视图控制器)
                  View being blocked by UITransitionView after being presented(呈现后被 UITransitionView 阻止的视图)
                  Show UITabBar when UIViewController pushed(推送 UIViewController 时显示 UITabBar)
                  Navigate Back to previous view controller(导航回上一个视图控制器)
                  How to detect if view controller is being popped of from the navigation controller?(如何检测是否从导航控制器弹出视图控制器?)
                    <tbody id='zNSn9'></tbody>

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

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

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

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