为什么在 UITabBar 中显示的图像在所选项目上不正确? [英] Why image shown in UITabBar, on selected item, not properly?

查看:22
本文介绍了为什么在 UITabBar 中显示的图像在所选项目上不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 UITabBar 并为选项卡设置了 2 个图像(活动项目、非活动项目).在停用的项目选项卡图标上正确显示为:

I have an UITabBar and set 2 images for a tab(active item, deactive item). On deactive item tab icon shown properly as:

Image here

but when those item is active, icon not shown properly:

Image here

Can anyone help me to fix it? I was that it will colour just borders of the icon, not entirely

解决方案

  • Check this screenshot: At right side of the screen see 'Rendered as' text and select drop down and use Original image. Your problem would be solved. Hope this helps..

这篇关于为什么在 UITabBar 中显示的图像在所选项目上不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆