xcode CFBundleIconFiles 和 Icon File 一样吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3602262/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is CFBundleIconFiles the same as Icon File?
提问by Sheehan Alam
I am trying to add a hi-res icon to my iPhone app. Is Is CFBundleIconFiles the same as Icon File in the screenshot below?
我正在尝试向我的 iPhone 应用程序添加高分辨率图标。CFBundleIconFiles 是否与下面屏幕截图中的图标文件相同?
回答by Yannick Compernol
Have a look at the following question on Stack Overflow, this should clear things up:
看一下 Stack Overflow 上的以下问题,这应该可以解决问题:
How do I specify both icons for a universal iPhone/iPad app?
In short, no it's not the same. The Icon File setting is the pre-iOS4 setting, but you should keep this for iOS3 compatibility if you allow your app to install on iOS3. The Icon File setting should point to the 57x57 sized icon.
简而言之,不,这不一样。Icon File 设置是 iOS4 之前的设置,但如果你允许你的应用程序安装在 iOS3 上,你应该保留它以兼容 iOS3。Icon File 设置应指向 57x57 大小的图标。
iOS4 uses the Icon Files setting, which is actually an array containing all filenames of all the icons. It scans through all the specified icons and uses the one with the closest matching size for the job. You should add your high resolution icon to this list as well as the standard 57x57 icon.
iOS4 使用 Icon Files 设置,它实际上是一个包含所有图标的所有文件名的数组。它会扫描所有指定的图标,并使用与作业尺寸最匹配的图标。您应该将高分辨率图标以及标准 57x57 图标添加到此列表中。
回答by Tafkadasoh
As Yannick pointed out, 'CFBundleIconFiles' is not the same as 'Icon Files', but there is another relation:
正如 Yannick 指出的那样,“CFBundleIconFiles”与“Icon Files”不同,但还有另一种关系:
'Icon File' is the Xcode name for the key 'CFBundleIconFile' and 'Icon Files' is the Xcode name for the key 'CFBundleIconFiles'.
“图标文件”是键“CFBundleIconFile”的 Xcode 名称,“图标文件”是键“CFBundleIconFiles”的 Xcode 名称。
So those are equivalent. See Apple's Core Foundation Keys Reference.
所以这些是等价的。请参阅Apple 的 Core Foundation Keys Reference。