• <small id='1ibvn'></small><noframes id='1ibvn'>

    <legend id='1ibvn'><style id='1ibvn'><dir id='1ibvn'><q id='1ibvn'></q></dir></style></legend>

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

        • <bdo id='1ibvn'></bdo><ul id='1ibvn'></ul>

        navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮?

        navigationItem.backBarButtonItem not working? Why is the previous menu still showing as the button?(navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮?)

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

              <tfoot id='nn0yn'></tfoot>
              <legend id='nn0yn'><style id='nn0yn'><dir id='nn0yn'><q id='nn0yn'></q></dir></style></legend>

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

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

                  <tbody id='nn0yn'></tbody>
                  本文介绍了navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  尝试在下钻导航控制器中自定义我的后退按钮.

                  Trying to customize my back button in a drilldown navigation controller.

                  在我的一个视图控制器上,我有一个 Add 按钮,代码以编程方式生成一个新的 UIViewController:

                  On my one view controller I have an Add button where the code programatically generates a new UIViewController:

                  - (void)add:(id)sender 
                  {
                      MyAddViewController *addController = [[MyAddViewController alloc] initWithNibName:@"MyAddViewController" bundle:nil];
                  
                      [self.navigationController pushViewController:addController animated:YES];
                  
                      [addController release];
                  }
                  

                  这有效,当我单击添加按钮时,它会向下钻取到新视图.在 MyAddViewController.mviewDidLoad 方法中,我有:

                  This works and when I click the add button it drills down into the new view. Inside the viewDidLoad method of MyAddViewController.m I have:

                  self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:nil action:nil] autorelease];
                  

                  但这不起作用.导航控制器中的后退按钮仍然是堆栈上前一个视图控制器的 title.这条线似乎什么也没做.我错过了什么吗?

                  But this isn't working. The back button in the navigation controller remains the title of the previous view's controller on the stack. It seems that line does nothing. Did I miss something?

                  谢谢

                  推荐答案

                  这仅适用于具有 self.navigationItem.backBarButtonItem 的 viewController 之后的每个子节点.

                  This will only work on each child after the viewController that has self.navigationItem.backBarButtonItem.

                  这篇关于navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  UITabBarController Rotation Issues in ios 6(ios 6 中的 UITabBarController 旋转问题)
                  UIImageView Gestures (Zoom, Rotate) Question(UIImageView 手势(缩放、旋转)问题)
                  Responsive website on iPhone - unwanted white space on rotate from landscape to portrait(iPhone上的响应式网站-从横向旋转到纵向时不需要的空白)
                  How to rotate an image 90 degrees on iOS?(如何在 iOS 上将图像旋转 90 度?)
                  How to capture current view screenshot and reuse in code? (iPhone SDK)(如何捕获当前视图屏幕截图并在代码中重用?(iPhone SDK))
                  iOS 6 shouldAutorotate: is NOT being called(iOS 6 shouldAutorotate: 没有被调用)
                  <legend id='1astR'><style id='1astR'><dir id='1astR'><q id='1astR'></q></dir></style></legend>
                  • <small id='1astR'></small><noframes id='1astR'>

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