简体   繁体   中英

Tab Bar Icon doesn't show?

I have ab/w PNG that is 48x60. When I set the icon image in the properties window, I just get a grey gradient rectangle instead of the image I selected.

The images for tab bars and toolbars are actually alpha masks, not complete images. Only the alpha channel of the image is used.

Tab Bar icon should be 30*30 and 60*60 for Retina Display... Put your icone 30*30 in the Inspector tool, and name the 60*60 one with the same name adding @2x at the end of its name. Example : tabicon1.png (30*30) tabicon1@2x.png (60*60)

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