UI按钮上的图像在模拟器上可见但在设备上丢失 [英] Image on UIbutton visible on simulator but lost on device

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

问题描述

我已经制作了一个包含电影播放器​​的应用程序。视频开始播放时触摸PLAY按钮。我在按钮上设置了一个图像Play.png,在模拟器上运行时图像显示但是设备图像没有显示出来..我在iOS 4.3模拟器上检查了应用程序并将其安装在设备iOS 3.2上。是因为旧版本吗?
谢谢..

I have made an application which includes movie player in it. Video starts playing on touching PLAY button. I have set an image "Play.png" on button and while running on simulator Image shows up but on device image does not show up.. Well I checked application on iOS 4.3 simulator and installed it on device iOS 3.2. Is it because of older version ? Thanks..

推荐答案

我不认为操作系统版本很重要。只需检查您的图像名称和正在使用的图像名称。

I don't think OS version matters. Just check the case of your image name and the one you are using.

一旦发生在我身上,因为图像名称的错误情况。我的图像名称是portraitbackground.png,我写的是PortraitBackground.png。请记住,模拟器是在iOS OS上运行的。无论如何,只需检查案例并准确写出图像名称是什么。我认为.png和.PNG也会被视为不同但我没有经历过。

Once it happened to me because of wrong case of the image name. My image name was "portraitbackground.png" and I was writing "PortraitBackground.png". Remember the simulator is running on mac os not iOS. Anyway, just check the case and write exactly what the image name is. I think .png and .PNG would also be treated as different but I haven't experienced it.

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

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