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

        <tfoot id='CkYR0'></tfoot><legend id='CkYR0'><style id='CkYR0'><dir id='CkYR0'><q id='CkYR0'></q></dir></style></legend>

        更改 UINavigationController 后退按钮的颜色

        时间:2023-06-12
          <tbody id='rrR3f'></tbody>

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

        • <bdo id='rrR3f'></bdo><ul id='rrR3f'></ul>
          • <legend id='rrR3f'><style id='rrR3f'><dir id='rrR3f'><q id='rrR3f'></q></dir></style></legend>

          • <tfoot id='rrR3f'></tfoot>

                <i id='rrR3f'><tr id='rrR3f'><dt id='rrR3f'><q id='rrR3f'><span id='rrR3f'><b id='rrR3f'><form id='rrR3f'><ins id='rrR3f'></ins><ul id='rrR3f'></ul><sub id='rrR3f'></sub></form><legend id='rrR3f'></legend><bdo id='rrR3f'><pre id='rrR3f'><center id='rrR3f'></center></pre></bdo></b><th id='rrR3f'></th></span></q></dt></tr></i><div id='rrR3f'><tfoot id='rrR3f'></tfoot><dl id='rrR3f'><fieldset id='rrR3f'></fieldset></dl></div>
                1. 本文介绍了更改 UINavigationController 后退按钮的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在试图弄清楚如何更改导航控制器上按钮的颜色时遇到了问题.

                  I'm having problems trying to figure out how to change the color of the buttons on the navigation controller.

                  以前我使用过以下内容:

                  Previously I had used the following:

                  [[UIBarButtonItem appearance] setTintColor:[UIColor colorWithRed:226/255.0 green:66/255.0 blue:66/255.0 alpha:0.0]];
                  

                  这很有效,但是我添加了一个带有工具栏的新视图,并且工具栏按钮图像不会显示.如果我删除全局着色,工具栏项目显示就好了.

                  and this worked, but I added a new view with a toolbar, and the tool bar button images will not show. If I remove the global coloring, the tool bar items show just fine.

                  我尝试在视图的 viewDidLoad 方法中设置 leftBarButtonItembackBarButtonItem 的色调颜色,但两者这些属性似乎为空.

                  I've tried setting the tint color on both the leftBarButtonItem and the backBarButtonItem in the viewDidLoad method of the view, but both of those properties appear to be null.

                  我不想改变整个导航栏的颜色,只是按钮.有没有办法做到这一点?

                  I don't want to change the color of the entire navigation bar, just the buttons. Is there a way to do this?

                  推荐答案

                  是的,我会发布这个作为答案.您的 alpha 设置为 0.所以您基本上说的与 [UIColor clearColor] 相同.不确定它是如何为您的条形按钮项目提供色调的.

                  Yeah, I'll just post this as an answer. Your alpha is set to 0. So you're basically saying the same thing as [UIColor clearColor]. Not sure how that ever worked to give you a tint color on your bar button items.

                  这篇关于更改 UINavigationController 后退按钮的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在目标视图控制器 viewWillAppear 中检测向后/弹出导航 下一篇:iOS 13 - 当搜索主动推送到其他 VC 时,该 VC UITableView 在 Swift 4 中的 Navig

                  相关文章

                    <bdo id='xGs79'></bdo><ul id='xGs79'></ul>
                2. <tfoot id='xGs79'></tfoot>
                3. <small id='xGs79'></small><noframes id='xGs79'>

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