简体   繁体   English

更改顶部栏颜色和标签栏文本颜色

[英]Changing top bar color & tab bar text color

How can I change the color in the tab bar? 如何更改标签栏中的颜色? I'm talking about the bar when you link an NavigationController to normal UIViewController. 当您将NavigationController链接到普通的UIViewController时,我谈论的是酒吧。 Second question. 第二个问题。 I changed the color of the tab bar (the one on the bottom, to navigate with) to blue. 我将标签栏的颜色(底部的一个用于导航)更改为蓝色。 But now, the default text of the tab bar -from a different tab that you are on- is hard to read. 但是现在,选项卡栏的默认文本(来自您所在的其他选项卡)很难阅读。 As the color of the bar is light blue and the text is dark grey. 条形图的颜色为浅蓝色,文本为深灰色。 Is that changeable? 那是可变的吗?

I'm currently using Storyboard too. 我目前也在使用Storyboard。

Image: 图片:

http://puu.sh/dVJl

The "top bar" is called the navigation bar and you can change that via the tintColor property (documentation linked for you). “顶部栏”称为导航栏,您可以通过tintColor属性(为您链接的文档)进行更改。

The tab bar also now has it's own tintColor property as of iOS 5.0 (and I've linked the documentation for that too). 自iOS 5.0起,选项卡栏现在也拥有自己的tintColor属性(并且我也为此链接了文档)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM