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 中未显示简单标题

        Simple Title not showing up in UINavigationController(UINavigationController 中未显示简单标题)
        <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 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(如何在代码中以编程方式添加导航控制器,但不作为初始视图控制器)
                  How to get the previous viewcontroller that pushed my current view(如何获取推送我当前视图的上一个视图控制器)
                  The correct way to set a light status bar text color in iOS 7 based on different ViewControllers(iOS 7中基于不同ViewControllers设置灯光状态栏文字颜色的正确方法)
                  <tfoot id='sH7mB'></tfoot>

                    • <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>
                            <tbody id='sH7mB'></tbody>

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