<tfoot id='Dp6K0'></tfoot>
  • <small id='Dp6K0'></small><noframes id='Dp6K0'>

      • <bdo id='Dp6K0'></bdo><ul id='Dp6K0'></ul>

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

        iPhone 为所有视图控制器提供一个标题

        时间:2023-06-10
          <bdo id='CuVGF'></bdo><ul id='CuVGF'></ul>
          <i id='CuVGF'><tr id='CuVGF'><dt id='CuVGF'><q id='CuVGF'><span id='CuVGF'><b id='CuVGF'><form id='CuVGF'><ins id='CuVGF'></ins><ul id='CuVGF'></ul><sub id='CuVGF'></sub></form><legend id='CuVGF'></legend><bdo id='CuVGF'><pre id='CuVGF'><center id='CuVGF'></center></pre></bdo></b><th id='CuVGF'></th></span></q></dt></tr></i><div id='CuVGF'><tfoot id='CuVGF'></tfoot><dl id='CuVGF'><fieldset id='CuVGF'></fieldset></dl></div>
          <tfoot id='CuVGF'></tfoot>
            <tbody id='CuVGF'></tbody>

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

                  <legend id='CuVGF'><style id='CuVGF'><dir id='CuVGF'><q id='CuVGF'></q></dir></style></legend>
                2. 本文介绍了iPhone 为所有视图控制器提供一个标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个带有标签栏控制器(带有 4 个视图控制器)的应用程序,它包含一个导航控制器.所有这些都是以编程方式创建的.我的问题:有没有办法为所有视图控制器设置一个导航栏标题?例如:当我切换标签时,标题是相同的.对我来说理想的解决方案是在应用程序委托文件中设置标题.非常感谢

                  I have an app with tab bar controller (with 4 views controller) and it contains a navigation controller. All of this was create programmatically. My question: Is there a way how to set one navigation bar title for all view controllers ? For example: When i switch tabs, title is the same. Ideal solution for me is set title in app delegate file. Thanks a lot

                  推荐答案

                  如果你知道会有 4 个视图控制器,那就做 self.title = @"your title"; 如果你想要更改您的标题"一次并将它们全部更改,只需创建一个静态全局或使用 plist.并将代码放在 viewDidAppear 下,以便每次刷新.不需要做任何太复杂的事情:)

                  If you know that there will be exactly 4 views controller, just do self.title = @"your title"; If you want to change "your title" once and have them all changed, just create a static global or use plist. And put the code under viewDidAppear so that it refreshes every time. No need to do anything too complex :)

                  这篇关于iPhone 为所有视图控制器提供一个标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:例外:无法在控制器管理的 UINavigationBar 上手动设置委托 下一篇:UINavigation 推送新的根控制器

                  相关文章

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

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

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