更新时间:2021-08-04 23:09:56
在 UIImage参考文档你可以看到imageNamed和imageWithContentsOfFile之间的一些区别。
In the UIImage reference documentation you can see a couple of differences between imageNamed and imageWithContentsOfFile.
知道了这一点,我能为您的问题考虑的最合理的解释是您正在使用视网膜设备并且具有相同图像的视网膜版本(@ 2x)。这可以解释为什么图像
Knowing this, the most logical explanation that I can think of for your problem is that you are using a retina device and have a retina version of that same image (@2x). That would explain why the image