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

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

        <tfoot id='PymFW'></tfoot>

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

        Swift 重命名后退导航项

        Swift renaming the back navigation item(Swift 重命名后退导航项)

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

              1. <legend id='nJuh3'><style id='nJuh3'><dir id='nJuh3'><q id='nJuh3'></q></dir></style></legend>

                  <tbody id='nJuh3'></tbody>
                • <bdo id='nJuh3'></bdo><ul id='nJuh3'></ul>
                • <tfoot id='nJuh3'></tfoot>
                • <small id='nJuh3'></small><noframes id='nJuh3'>

                  本文介绍了Swift 重命名后退导航项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试在导航控制器中编辑 返回项 的磁贴.

                  I'm trying to edit the tile of the back item in the navigation controller.

                  我有这个场景,Navigation Controller -> Table View Controller -> TableViewController.

                  在第二个 TableViewController 中,我想将后面的项目从xxxx"重命名为Back".

                  In the second TableViewController I want to rename the the back item from "xxxx" to "Back".

                  有没有办法通过 StoryBoard 完成,还是应该以编程方式?

                  Is there a way to do via the StoryBoard, or should I do it programmatically?

                  这是我尝试过的,但它不起作用:

                  This is what I've tried but it does not work:

                  let backItem = UIBarButtonItem()
                  backItem.title = "Back"
                  navigationItem.backBarButtonItem? = backItem
                  

                  navigationItem.backBarButtonItem?.title = "back"
                  

                  它们都在 viewDidLoad() 中

                  both of them in the viewDidLoad()

                  推荐答案

                  是的,你可以用 StoryBoard 做到这一点.选择 TableViewController 中的 NavgationItem 您已嵌入 NavgationController 之后,在 Attribute Inspector 中设置 Back Button 带有您想要的标题,它是 Back.

                  Yes, you can do that with StoryBoard. Select the NavgationItem in TableViewController that you have embedded in NavgationController after that in the Attribute Inspector set the Back Button with title that you want in your case it is Back.

                  这篇关于Swift 重命名后退导航项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone(UISplitViewController 内的 UITabBarController 内的 UINavigationController 以模态方式呈现在 iPhone 上) - IT屋-程序员软件开发技术分
                  ViewController in UINavigationController orientation change(UINavigationController 中的 ViewController 方向更改)
                  Custom back button in UINavigationController(UINavigationController 中的自定义后退按钮)
                  How to add a navigation controller programmatically in code but not as initial view controller(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                  The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)
                  View being blocked by UITransitionView after being presented(呈现后被 UITransitionView 阻止的视图)

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

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

                        <tfoot id='XrbTt'></tfoot>
                          <bdo id='XrbTt'></bdo><ul id='XrbTt'></ul>

                            <tbody id='XrbTt'></tbody>
                            <legend id='XrbTt'><style id='XrbTt'><dir id='XrbTt'><q id='XrbTt'></q></dir></style></legend>