标签栏按钮全灰色 [英] Tab bar buttons all gray
问题描述
我正在尝试创建一个标签栏控制器,但上次我使用的是 iOS 6.1.但是现在当我在情节提要上放置标签栏控制器时,它不会显示按钮,并且我尝试对背景和文本进行的任何修改都不会出现.有谁知道我该如何修复它?
I'm trying to create a tab bar controller but last time I did it was with iOS 6.1. But now when I put a Tab bar Controller on the storyboard it doesn't show the buttons, and any modifications I try to make on background and text does not appear. Anyone knows how can I fix it?
下面是所描述问题的图像.
Below is an image of the described problem.
谢谢!
推荐答案
由于刚刚在评论中提到,我也为这个问题苦苦挣扎了好一阵子,这是一个解决方案:
Since it is just mentioned in the comments and I struggled with this problem for quite a while, this is a solution:
添加图像到Tab Bar Item
,您将在特定的View Controller
上看到标签栏的正常视图改变了它.当每个 Tab Bar Item
获得图像时,您还会在Tab Bar Controller
中看到正常外观.
Add an image to the Tab Bar Item
and you will see the normal view of the tab bar on the specific View Controller
where you changed it. When every single Tab Bar Item
got an image you will also see the normal appearance in your Tab Bar Controller
.
这是在重新安装 Xcode 并重新启动我的 mac 后唯一对我有用的修复程序,但都没有解决问题.
This is the only fix that worked for me after reinstalling Xcode and rebooting my mac which both didn't solve the problem.
我会感谢其他解决方案,因为我认为情况并非总是如此.
I'd appreciate other solutions as I think this hasn't always been this way.
这篇关于标签栏按钮全灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!