Anytime I add a tab bar controller to XCode the tab bar is greyed out and I can't see any of the tabs in the storyboard. At runtime it displays fine. I can't figure out why it is happening.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
Setting an image for the Tab Bar Items and restarting xcode fixed it for me.
回答3:
In the assets folder (or wherever your image is kept), set 'Render as' to Original image
回答4:
It looks like this was a bug in the XCode UI. This has been fixed in later versions of XCode.