更改UINavigationBar的textColor“提示”? [英] Change textColor of UINavigationBar "prompt"?

查看:122
本文介绍了更改UINavigationBar的textColor“提示”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何(支持)方式这样做? IIRC当使用比X更深的tintColor时,它通常自身切换到白色,但我们似乎只是在我们的方案的边缘。

titleView 每个 UINavigationItem / code>。您可以使用 UILabel ,尽量与内置的导航标题样式尽可能匹配,然后分配您自己的文本颜色。


Any (supported) way of doing this? IIRC it usually switches over by itself to a white color at some point when using a "darker than X" tintColor, but we seem to be just on the edge with our scheme.

解决方案

I guess the only way to really do it is to use a custom titleView for each UINavigationItem. You can use a UILabel and try to match the built-in navigation title style as closely as you can, then assign your own text color.

这篇关于更改UINavigationBar的textColor“提示”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆