iPhone Icon@2x.png未显示在Retina显示屏中 [英] iPhone Icon@2x.png not showing in Retina display

查看:132
本文介绍了iPhone Icon@2x.png未显示在Retina显示屏中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,iPhone 4拒绝显示我的高分辨率图标文件。

For some reason, the iPhone 4 refuses to display my high resolution icon file.

我检查了这些解决方案,其中没有一个对我有用:

I've checked out these solutions, none of which have worked for me:

如何设置适用于iPhone 4的iPhone3和Retina的正常图标

http://developer.apple.com/library/ios/#qa/qa2010/qa1686.html

http ://appworks.radeeccles.com/programming/cfbundleiconfiles-nice-ready-prime-time/

图标位于我的资源组中,并且全部正确命名:

The icons are in my resources group, and are all named correctly:


  • Icon.png

  • Icon@2x.png

  • Icon-72.png

我也试过广告将它们引用到Info.plist文件,首先作为数组,然后作为字典,然后简单地删除plist文件中的所有图标引用,但无论我做什么,它仍然会显示放大的57x57图标。

I've also tried adding them to the Info.plist file, first as an array, then as a dictionary, then simply deleting all icon references from the plist file, but no matter what I do, it still displays the 57x57 icon scaled up.

有工作图标设置的人可以发布实现这项工作所需的实际XML咒语吗?

Can someone who has a working icon setup please post the actual XML incantation required to make this work?

推荐答案

我的解决方案很简单,但只是巧妙地在Apple Docs中逐行比较。

缝合矛盾的非显而易见的解决方案是删除图标文件键值。在上一个答案的图像中,您可以看到图标文件仍然显示icon.png,图标文件显示两个:icon.png& icon@2x.png。

The non-obvious solution that seamed contradictory was "Deleting the Icon file key value". In the previous answer's image, you can see the Icon file still shows "icon.png" and the "Icon files" shows the two: icon.png & icon@2x.png.

我通过删除Icon.png的图标文件键值让我的应用程序正常工作这是唯一不同的东西,在Apple Docs缺少图标文件键的值。在此处查看图像:已删除链接...

I got my app to work by deleting the "Icon file's" key value of "Icon.png" It was the only thing different, in the Apple Docs was the absence of a value for the "Icon file" key. View an image here: link removed...

更新显示这些图像的链接:
https://developer.apple.com/library/content/qa/qa1686/_index。 html#// apple_ref / doc / uid / DTS40009882

Updated Link that Shows these Images: https://developer.apple.com/library/content/qa/qa1686/_index.html#//apple_ref/doc/uid/DTS40009882

此外,我会确保你在标记照片时使用苹果推荐的表示法:

In addition, I would make sure you are using Apples recommended notation when labeling the photos:



  • 512x512 iTunesArtwork iTunes Image

  • 57x57 Icon.png主屏幕< ; iPhone 4

  • 114x114 Icon@2x.png iPhone 4高分辨率的主屏幕

  • 72x72 Icon-72.png兼容iPad的主屏幕

  • 29x29 Icon-Small.png聚光灯和设置

  • 50x50 Icon-Small-50.png Spotlight for iPad兼容性

  • 58x58 Icon-Small@2x.png iPhone 4的聚光灯和设置
    高分辨率

  • 512x512 iTunesArtwork iTunes Image
  • 57x57 Icon.png Home screen for < iPhone 4
  • 114x114 Icon@2x.png Home screen for iPhone 4 High Resolution
  • 72x72 Icon-72.png Home screen for iPad compatibility
  • 29x29 Icon-Small.png Spotlight and Settings
  • 50x50 Icon-Small-50.png Spotlight for iPad compatibility
  • 58x58 Icon-Small@2x.png Spotlight and Settings for iPhone 4 High Resolution






后续步骤...


  1. 全部清除目标

  2. 重置模拟器

  3. 重新启动应用程序

  4. 适用于iPhone4,显示大型AppIcon =Icon @ 2x.png

  1. Clean All targets
  2. Reset Simulator
  3. Relaunch Application
  4. Works fine for iPhone4, reveals large AppIcon = "Icon@2x.png"






最终步骤......


  1. 我将Icon.png名称重新插入(图标文件)键。

  2. 我把它放回到Backwards支持iOS 3.0+以便它仍然可以使用它。

  3. 再次清理所有目标,

  4. Build& Relauch!

  1. I put the "Icon.png" name back in for the (Icon file) key.
  2. I put this back in to Backwards support iOS 3.0+ so that it still has a value to use.
  3. Clean All Targets again,
  4. Build & Relauch!






此方法接缝清除任何遗留问题并确保模拟器拉入正确的文件。


This methods seams to clear out any legacy issues and assures that the simulator pulls in the correct files.

希望这会有所帮助!

P.S。如果这有助于您解决问题,请务必将我的评论作为解决方案进行检查。

P.S. If this helps you solve your problem, be sure to check my comment as the Solution.

这篇关于iPhone Icon@2x.png未显示在Retina显示屏中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆