相关疑难解决方法(0)

更改未选中的UITabBarController项目标题和背景图像的tintColor

如何更改未选中的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)

uitabbaritem tintcolor ios bartintcolor ios8

17
推荐指数
3
解决办法
3万
查看次数

如何更改标签栏项目文本颜色

在此输入图像描述

如何更改标签栏中"更多..."文本的颜色以匹配其图标颜色.(现在在标签栏中选择了Performance)

我试着设置TitleTextAttributes.

[moreItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIFont fontWithName:@"HelveticaLTStd-Roman" size:10.0f], NSFontAttributeName,  [UIColor yellowColor],NSForegroundColorAttributeName , nil]
Run Code Online (Sandbox Code Playgroud)

但它的文字颜色总是设置为黄色.即使选择了该项目.像这样 在此输入图像描述

我选择设置为白色,未选中时应与图标颜色匹配.谢谢..任何建议都会非常有帮助.

iphone objective-c ios ios7

15
推荐指数
5
解决办法
3万
查看次数

标签 统计

ios ×2

bartintcolor ×1

ios7 ×1

ios8 ×1

iphone ×1

objective-c ×1

tintcolor ×1

uitabbaritem ×1