<bdo id='evAEJ'></bdo><ul id='evAEJ'></ul>
  1. <legend id='evAEJ'><style id='evAEJ'><dir id='evAEJ'><q id='evAEJ'></q></dir></style></legend>
  2. <tfoot id='evAEJ'></tfoot>
  3. <small id='evAEJ'></small><noframes id='evAEJ'>

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

    1. 在 iOS7 中测试的 UINavigationBar 设置 tintcolor 不起作用?

      UINavigationBar set tintcolor tested in iOS7 not working?(在 iOS7 中测试的 UINavigationBar 设置 tintcolor 不起作用?)
    2. <legend id='Ab4j7'><style id='Ab4j7'><dir id='Ab4j7'><q id='Ab4j7'></q></dir></style></legend>
        <bdo id='Ab4j7'></bdo><ul id='Ab4j7'></ul>

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

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

                  <tbody id='Ab4j7'></tbody>
              1. 本文介绍了在 iOS7 中测试的 UINavigationBar 设置 tintcolor 不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个具有 UINavigationBar 的应用程序,并且我已将色调颜色设置为黑色,如下所示:

                I have an app which have a UINavigationBar and I have set the tint color to black like this:

                self.navigationController.navigationBar.tintColor = [UIColor blackColor];`
                

                我在 IOS 6 中测试过,它是黑色的.但是,当我在 iOS 7 中尝试相同的应用程序时,它显示为默认导航栏.

                I have tested it in IOS 6 and it's black. However, it appears as the default navigation bar when I tried the same app in iOS 7.

                正如标题所说,它不起作用吗?

                As the title says, is it not working?

                推荐答案

                需要设置 barTintColor 属性.

                You need to set the barTintColor property.

                您可以使用 Tint (barTintColor) 字段为导航栏背景指定自定义色调颜色.默认背景色为白色.

                You can specify a custom tint color for the navigation bar background using the Tint (barTintColor) field. The default background tint color is white.

                来自 iOS7 文档:https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/UIKitUICatalog/UINavigationBar.html#//apple_ref/doc/uid/TP40012857-UINavigationBar-SW1

                From iOS7 docs: https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/UIKitUICatalog/UINavigationBar.html#//apple_ref/doc/uid/TP40012857-UINavigationBar-SW1

                这篇关于在 iOS7 中测试的 UINavigationBar 设置 tintcolor 不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 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设置灯光状态栏文字颜色的正确方法)
                Show UITabBar when UIViewController pushed(推送 UIViewController 时显示 UITabBar)
                1. <legend id='l2Uiu'><style id='l2Uiu'><dir id='l2Uiu'><q id='l2Uiu'></q></dir></style></legend>
                    <bdo id='l2Uiu'></bdo><ul id='l2Uiu'></ul>

                      <tbody id='l2Uiu'></tbody>

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

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