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

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

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

      1. UINavigationController 中未显示简单标题

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

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

                  本文介绍了UINavigationController 中未显示简单标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我查看了所有类似/相关的问题,但没有一个 a) 完全是我的问题,或者 2) 解决方案不起作用.

                  I have looked at all of the similar/related questions, but none either a) are exactly my problem or 2) the solutions just don't work.

                  在我的 appDelegate.m 中有 didFinishLaunchingWithOptions

                  In my appDelegate.m I have in didFinishLaunchingWithOptions

                  JCGRootNavigationController *rnc = [[JCGRootNavigationController alloc] init];
                  self.window.rootViewController = rnc;`
                  

                  JCGRootNavigationController 是 UINavigationController 的子类

                  JCGRootNavigationController is a subclass of UINavigationController

                  @interface JCGRootNavigationController : UINavigationController`
                  

                  在 JCGRootNavigationController.m 中:

                  In JCGRootNavigationController.m:

                  @implementation JCGRootNavigationController
                  
                  -(instancetype) init {
                      self = [super init];
                      self.view.backgroundColor = [UIColor lightGrayColor];
                      self.navigationItem.title = @"MY TITLE";    
                      return self;
                  }
                  

                  而且标题不会显示.我看到导航栏,但没有标题.看起来多年来很多人都遇到过同样的问题.也许一个简单的答案将有助于消除所有的困惑.这真是令人难以置信的令人沮丧.

                  And the title just won't display. I see the Navigation Bar, but no title. Looks like lots of people over the years have had this same problem. Maybe a simple answer will help clear up all of the confusing. This is so incredibly frustrating.

                  推荐答案

                  UINavigationController 自动显示它正在显示的 UIViewController 子类的标题.它通过查看 UIViewController 或 UIViewController 子类的 navigationItem.title 属性来实现.基本上 UINavigationController 没有标题.

                  UINavigationController automatically shows the title of the UIViewController subclass it is displaying. It does so by looking at the navigationItem.title property of that UIViewController or UIViewController subclass. Basically UINavigationController doesn't have a title.

                  这篇关于UINavigationController 中未显示简单标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:将 UINavigationController 的工具栏移到顶部以位于导航栏下方 下一篇:React-Native:无法访问状态值或从 renderRow 声明的任何方法

                  相关文章

                  <tfoot id='sH7mB'></tfoot>

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

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