Tab bar buttons all gray

折月煮酒 提交于 2019-12-08 19:23:29

问题


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.

Thanks!


回答1:


Since it is just mentioned in the comments and I struggled with this problem for quite a while, this is a solution:

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.

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.



来源:https://stackoverflow.com/questions/22642476/tab-bar-buttons-all-gray

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!