如何更改UIBarButton项目的字体颜色? [英] How can I change the font color of a UIBarButton item?
本文介绍了如何更改UIBarButton项目的字体颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将颜色更改为红色。
I want to change the color to red.
推荐答案
这个问题已回答在这里。基本上,你必须创建一个UIButton,根据需要配置它,然后用UIButton作为自定义视图来初始化Bar Button Item。
This question was answered here. Basically, you have to create a UIButton, configure it as you wish, and then initialize the Bar Button Item with the UIButton as a custom view.
这篇关于如何更改UIBarButton项目的字体颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文