简体   繁体   English

iOS 7.1中多个标签栏图标处于选定状态

[英]Multiple tab bar icons are in selected state in iOS 7.1

In tab bar, only currently active item should be in blue colour. 在标签栏中,只有当前活动的项目应为蓝色。 But in iOS 7, multiple item's image are in selected state (blue colour). 但是在iOS 7中,多个项目的图像处于选定状态(蓝色)。 Apart from iOS-7 ie iOS-8 and above, its working perfectly fine. 除了iOS-7(即iOS-8及更高版本)之外,它的运行情况还算不错。 PFA screenshot here PFA屏幕截图在这里

Check your image in storyboard where you have set, I think you have provide same image for both state, Selected and Normal. 在设置好的情节提要中检查图像,我认为您为状态(选定和正常)提供了相同的图像。 This should be your problem. 这应该是你的问题。

在此处输入图片说明

Provide different image for both, selected image under Tab Bar Item and image under Bar Item. 为“标签栏”项下的所选图像和“栏项”下的图像两者提供不同的图像。 See above image. 见上图。

Also you can refer this link. 您也可以参考此链接。 How to change the tab bar image color for selected and unselected 如何更改选中和未选中的标签栏图像颜色

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM