iPhone:UIImage imageNamed不显示图像 [英] iPhone: UIImage imageNamed doesn't show the image
本文介绍了iPhone:UIImage imageNamed不显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在UITableView单元格中使用附加图像。图像在应用程序包中。除了这个图像和少量图像,其他图像在细胞中显示正常。我找不到什么原因,特别是没有显示这个图像。如果遇到这些问题,有人可以帮助我吗?
I am trying to use the attached image in an UITableView cell. Images are in application bundle. Except this image and few images, other images are showing fine in the cell. I couldn't find whats the reason to not showing this image particularly. Could someone help me if you came across such problems?
myImageView.image = [UIImage imageNamed:@"icontemp.png"]
推荐答案
我认为你还没有完全复制你的图像单元格中未显示的应用程序包。
I think you have not copied exactly the images in your application bundle that is being not displayed in the cell.
尝试&检查删除一堆图像并在项目中再次添加。
Try & check removing bunch of images and add those again in your project.
这篇关于iPhone:UIImage imageNamed不显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文