iPhone模拟器显示应用程序的图像,但iPhone不显示 [英] iPhone simulator shows app's images but iPhone does not

查看:79
本文介绍了iPhone模拟器显示应用程序的图像,但iPhone不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Objective-C在iPhone上创建了一个应用程序.在这个应用程序中,我只是显示存储在一个文件夹中的不同播放器图像,这些图像可以在模拟器上完美运行.但是,当我在iPhone上部署它时,它没有显示播放器的图像.

I have create an application on iphone using objective-c.In this application i am just displaying different players images stored in one folder, which will be run perfectly on simulator. But when I deploy it on iphone it is not showing the images of the player.

该代码为:

UIImageView *imageplayer = [[UIImageView alloc]initWithFrame: CGRectMake(imgx, imgy+45,135,150)];
imageplayer.image = [UIImage imageNamed:playerpng];

if(imageplayer.image == nil)
    [imageplayer setImage:[UIImage imageNamed:playerjpg]];

if(imageplayer.image == nil)
    [imageplayer setImage:[UIImage imageNamed:@"noimage.png"]];

[self.view addSubView:imageplayer];

Plz解决了该查询. 预先感谢

Plz solve this query. Thanks in advance

推荐答案

有时xCode确实正确更新了捆绑软件,请尝试再次清洁并构建.

Sometimes xCode doesent update correctly the bundle, try cleaning and building again.

这篇关于iPhone模拟器显示应用程序的图像,但iPhone不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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