简体   繁体   English

图像不会显示在设备中,而是显示在模拟器中

[英]Images don't display in device but in simulator

I have an array: 我有一个数组:

langArray = [[NSMutableArray alloc]initWithObjects:@"Italiano",@"English",@"Francais", nil];`

and cell image like this : 和像这样的细胞图像:

 cell.imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"language_%@_disabled.png",[langArray objectAtIndex:indexPath.row]]];

but images don's display in device, in simulator they display normally. 但是图像不会显示在设备中,在模拟器中它们会正常显示。

Check the images name in your Xcode Project.. 检查Xcode项目中的图像名称..

Because simulator is Case Insensitive and Device is Case Sensitive .. 因为模拟器是Case Insensitive而Device是区分大小写的..

May be the ImageName in your array different Imagename in your local. 您的数组中的ImageName可能是您本地的不同Imagename。 You can check upcapercase 你可以查看upcapercase

检查您的Xcode项目源可能是您的图像扩展名为“.PNG” rathere然后“.png”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM