如何更改未选中的UITabBarItem标题和背景图像iOS 8的tintColor?
未选择状态的默认颜色为浅灰色,但在我的暗色UITabBar背景上不显示
我希望我的未选择状态有[UIColor blackColor]的颜色
在我的应用程序委托内部完成了完成任务:我有
UIImage *deselectedE = [[UIImage imageNamed:@"mincraft_axe_green_32.png"] imageWithRenderingMode:UIImageRenderingModeAutomatic];
UIImage *selectedE = [[UIImage imageNamed:@"mincraft_axe_green_32.png"] imageWithRenderingMode:UIImageRenderingModeAutomatic];
e.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Profile" image:deselectedE selectedImage:selectedE];
[[UITabBar appearance] setTintColor:[UIColor blackColor]];
Run Code Online (Sandbox Code Playgroud) 
如何更改标签栏中"更多..."文本的颜色以匹配其图标颜色.(现在在标签栏中选择了Performance)
我试着设置TitleTextAttributes.
[moreItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIFont fontWithName:@"HelveticaLTStd-Roman" size:10.0f], NSFontAttributeName, [UIColor yellowColor],NSForegroundColorAttributeName , nil]
Run Code Online (Sandbox Code Playgroud)
但它的文字颜色总是设置为黄色.即使选择了该项目.像这样
我选择设置为白色,未选中时应与图标颜色匹配.谢谢..任何建议都会非常有帮助.