简体   繁体   English

图像适用于iPad Retina模拟器,但不适用于iPad Air

[英]images work for iPad Retina simulator but not for iPad Air

Xcode 6.1.1: Running in iPad Retina simulator, everything looks great. Xcode 6.1.1:在iPad Retina模拟器中运行,一切看起来都很不错。 Correct scale, etc. 正确比例等

But when running in iPad Air simulator, graphics and positioning are all half of what they should be. 但是,在iPad Air模拟器中运行时,图形和位置都只是应有的一半。

Why would it work in one and not the other? 为什么它会在一个而不是另一个中起作用? Aren't iPad Retina and iPad Air pretty much the same thing? iPad Retina和iPad Air几乎不是一回事吗? Same resolution, same points, both considered 'iPad' and 'Retina'... so what's the deal? 相同的分辨率,相同的点,都被认为是“ iPad”和“ Retina” ...那怎么办? Any ideas? 有任何想法吗?

Check if you have retina and non-retina images, for example 例如,检查您是否有视网膜图像和非视网膜图像

  • image.png (non-retina / standard). image.png(非视网膜/标准)。
  • image@2x.png (retina / hight-resolution). image@2x.png(视网膜/高分辨率)。

I had the same issue. 我遇到过同样的问题。 In my case it was a matter of commenting out a category method, taken from this SO answer: Images not showing up when architecture set to 64 bit 就我而言,这是注释掉一个类别方法的问题,该类别方法取自以下SO答案: 当体系结构设置为64位时,图像不显示

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

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