简体   繁体   中英

Tab Bar Controller item image not showing

I am using xcode 8

I have a simple Tab Bar Controller, I changed the Tab Bar Item image in each View Controller that embedded inside Tab Bar Controller:

在此处输入图片说明

However in storyboard, the tab bar item images on Tab Bar Controller doesn't change. When I rum my app, the Tab Bar Controller shows only text without any image at all. What is wrong?

This is on emulator: 在此处输入图片说明

Probably you have set Selected Image of Tab Bar Item instead of Image of the Bar Item .

You could use Selected Image to change the Bar Item image when user click over it.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM