我想更改UINavigationBar
titleColor
。
我还想更改 UINavigationBar
backButton
的 textColor
。
我使用的是 iPhone Os sdk 3.1.2
最佳答案
这对我有用。
使用它,您可以更改所有导航按钮的颜色:
[[UIBarButtonItem appearance] setTintColor:[UIColor redColor]];
将 redColor 替换为以下内容以调整按钮的颜色:
colorWithRed:0/255.0 green:144/255.0 blue:200/255.0 alpha:1.0// pick your color using this
请务必将其放入推送的 View Controller 中。不是您希望看到此后退按钮颜色的 View Controller 。
关于iphone - 更改导航栏标题颜色和后退按钮标题颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1679604/