Reputation: 3637
I'm working on a iOS app. I have a tabbar with 5 View Controllers. All the icons are set in the Storyboard:
When I launch the app, 2 are messed up. The Home (first TabBar View Controller) is practically missing and the last one (Messages) is not even looking the way it should be. I have no clue what's happening. The home tab bar icon is completely gone and the messages unselected icon is not looking the same.
I can guarantee you that all icons are in the Assets folder.
But when I launch the app it looks like this:
UPDATE: I Figured out the Message Tabbar Item (Render as: original image solved that). That's fixed. But the home item is still not showing.
Upvotes: 2
Views: 3888
Reputation: 3637
After playing around for hours, I finally figured it out. Basically, since I've changed the order in that UIStoryboard
, the TabBarItem
in the UINagivationController
of the Home View Controller was deleted. All you have to do is to add a new TabBarItem
in the UINagivationController
and set the image/icon you'd like.
Upvotes: 4
Reputation: 161
make sure downloaded icons are of the size 25*25 for the 1x size. That would work.
Upvotes: 0
Reputation: 514
Try this One
Go to Assets folder. Select your tab image. On the right side under Attributes you will find "Render As". Select "Original Image".
Upvotes: 6
Reputation: 16436
Goto your view controller and select tabbar (tap on bottom icon)
and set selected image and image
After that goto your Image Assets and change the rendering mode to original for selected image
Hope it is helpful
Upvotes: 1