[英]Images don't display in device but in simulator
我有一个数组:
langArray = [[NSMutableArray alloc]initWithObjects:@"Italiano",@"English",@"Francais", nil];`
和像这样的细胞图像:
cell.imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"language_%@_disabled.png",[langArray objectAtIndex:indexPath.row]]];
但是图像不会显示在设备中,在模拟器中它们会正常显示。
检查Xcode项目中的图像名称..
因为模拟器是Case Insensitive而Device是区分大小写的..
您的数组中的ImageName可能是您本地的不同Imagename。 你可以查看upcapercase
检查您的Xcode项目源可能是您的图像扩展名为“.PNG” rathere然后“.png”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.