【发布时间】:2013-09-27 14:30:41
【问题描述】:
[[UITabBar appearance] setTintColor:[UIColor redColor]]; // for unselected items that are red
[[UITabBar appearance] setSelectedImageTintColor:[UIColor greenColor]]; // for selected items that are green
为什么这段代码在 iOS 7 中不起作用?
setTintColor 有效,但仅更改“选定”图标的颜色,而不是像早期 iOS 版本中那样更改未选定的颜色,这很奇怪吗? setSelectedImageTintColor 根本不起作用?真的不能随意给图标上色了吗?
另外,setSelectionIndicatorImage 在应用启动时没有按预期工作,iOS 7 中发生了什么?
Derp herp Apple,为什么?
【问题讨论】:
标签: ios uitabbarcontroller uitabbar ios7 uitabbaritem