<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 上未出现后退按钮

        时间:2023-06-11
      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 上未出现后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:React-Native:无法访问状态值或从 renderRow 声明的任何方法 下一篇:如何像 iOS 7 iPad App Store 一样同时翻转和放大 UIView?

                  相关文章

                    <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>