UITabBar图像在模拟器上可见,消失在设备上 [英] UITabBar images visible on simulator, disappear on the device

查看:134
本文介绍了UITabBar图像在模拟器上可见,消失在设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iPhone应用程序中,我有一个带有三个标签的UITabBar。一个有系统映像,另外两个有自定义映像。这些是PNG,30x30,基于调色板,大多是透明的。这些图像在模拟器中显示得很好,但在设备上,我看到的只是一个标签上的灰色渐变方形。这些图像上的形状一开始是灰色的,但它们确实在模拟器上显示出来。

in an iPhone app, I have a UITabBar with three tabs. One has a system image, two more have custom images. These are PNGs, 30x30, palette-based, mostly transparent. These images show up fine in the simulator, but on the device, all I see is a grey gradiented square on a tab. The shapes on these images are grey to begin with, but they do show up as expected on the simulator.

请问有什么想法吗?

推荐答案

图像在透明时应为白色。它位于UI设计指南中。在我的情况下,它是透明的灰色。模拟器原谅了,设备没有。

The image should be white on transparent. It's in the UI design guide. In my case, it was grey on transparent. Simulator forgives that, the device does not.

这篇关于UITabBar图像在模拟器上可见,消失在设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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