Why TabBar images are not displayed

Source: Internet
Author: User

I started to use UITabBarController in ios. I encountered a problem when setting a custom image for the Tab Bar Item.

Configure as follows:

The result is:

Test24.png on supervisor should be:

After a long tangle, I used the images in the source code of the book.

It can be displayed, but the UI cannot be displayed. Fortunately, we woke up the dreamer by using the UI, saying that here we just took a shape and should have a color for it, so I asked my UI brother to add a layer color to the original image to see if it would be displayed.

New image:

Display result:

Sure enough, the Tab Bar Item only takes the shape of the image, and the other colors and things are processed by yourself.

Thank you for reminding me!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.