Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image is not showing up for tab bar item

I uploaded an image to assets folder and assigned the image to 1x, 2x and 3x. selected the table view controller of the respective tab bar item -> selected the Attributes -> assigned the image to the image field in the Bar Items section.

After running the application a Blue Square box is showing up on selection and Grayed out square box is showing up on selection of a different bar item.

Where am I going wrong?

like image 272
TeKnofUNk Avatar asked Oct 18 '16 07:10

TeKnofUNk


People also ask

How do I add an image to the tab bar in iOS?

iOS UITabBarController Changing Tab Bar Item Title and Icon For a custom icon, add the required images to the assets folder and set the 'System Item' from earlier to 'custom'. Now, set the icon to be shown when the tab is selected from the 'selected image' drop down and the default tab icon from the 'image' drop down.

How do I add a tab bar to an item?

To add a tab, first drag a new View Controller object to the storybard. Next control-drag from the tab bar controller to new view controller and select view controllers under Relationship Segue . Your tab bar controller will update with a new tab.

How to fix an HTML image not showing up on browser?

There are two things you can do to fix an HTML image not showing up on the browser: This tutorial will explain the above methods, starting with checking the src path Every image in HTML is rendered by using the <img> tag with the image source specified in the src attribute.

Why is my CAPTCHA image not showing up?

Repair: Captcha Graphic Image Not Showing in Your Browser Sometimes the captcha graphic image not showing up when you try to commit your comment or log in a website, it may cause by network latency or refresh speed. In this case, you can press F5 to refresh the webpage or open this site in another browser.

How do I add icons to the taskbar?

Right-click any blank area of taskbar. Look for "Show application icons". If it has no checkmark, select it to add the check. God only knows why this option exists. Was this reply helpful? Sorry this didn't help.

How to display an image in an HTML document?

If your image is saved locally in a folder beside your HTML document location, then you can use the relative path. Then inside the index.html file, you can display the image using the following tag:


2 Answers

Go to Assets folder. Select your tab image. On the right side under Attributes you will find "Render As". Select "Original Image".

like image 158
B B Avatar answered Sep 19 '22 17:09

B B


When you click on a tab bar icon in one of your view controllers, on the right hand side is where you set the image. What's misleading is that there are two places to set the image in the right sidebar. Under Tab Bar Item > System Item (custom) below that selecting the custom image. Then right below that whole first set there is Bar Item > Image. Mine wouldn't show up until I set the Bar Item > Image as well.

like image 21
kiko carisse Avatar answered Sep 21 '22 17:09

kiko carisse