【发布时间】:2013-12-10 08:41:47
【问题描述】:
我需要为 UITabBar 标题设置十六进制值(特定颜色值)。我知道下面的代码是正常的。我需要设置十六进制值而不是蓝色。如果我需要设置 #33223 意味着我该怎么办?
[[UITabBarItem appearance] setTitleTextAttributes:@{UITextAttributeTextColor :[UIColor colorWithRed:5 green:112 blue:180 alpha:2]} forState:UIControlStateNormal];
【问题讨论】:
-
这可能会对您有所帮助stackoverflow.com/questions/6207329/…
-
我在问如何为 UITabBar 标题使用十六进制值?
标签: ios uitabbarcontroller uitabbar uitabbaritem