XCode 6 Tab Bar tabs greyed out
Asked Answered
T

4

6

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.

enter image description here

Trinitarianism answered 13/1, 2015 at 16:48 Comment(0)
L
5

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.

Loud answered 8/2, 2015 at 21:23 Comment(0)
M
1

Setting an image for the Tab Bar Items and restarting xcode fixed it for me.

Mick answered 3/8, 2016 at 13:54 Comment(0)
E
0

In the assets folder (or wherever your image is kept), set 'Render as' to Original image

Enfold answered 16/12, 2015 at 12:27 Comment(1)
No, it doesn't work. If you have tabs for which images are not yet set you will not see tabs in main tab bar controller. I've also noticed some strange behaviours for first and last images sometimes appearing or disappearing. So if you only have two tabs you could encounter different observations.Bullfighter
T
0

It looks like this was a bug in the XCode UI. This has been fixed in later versions of XCode.

Trinitarianism answered 17/12, 2015 at 15:14 Comment(1)
No, not yet. I'm using the latest version of Xcode (7.2.1) and is still an issue.Bullfighter

© 2022 - 2024 — McMap. All rights reserved.