如何获得ipad和iphone的图标?

发布于 2024-09-27 00:40:46 字数 160 浏览 0 评论 0原文

我不明白:)我有一个当前为 57x57 的 Icon.pn,但当我编译时,我收到一条警告,指出它需要为 72x72。如果我将其设置为 72x72,它会抱怨它需要为 57x57。

我确实理解这个问题,但我不知道如何解决它,我如何告诉 xcode 哪个图标适用于哪个设备?

谢谢

I dont get it :) I have an Icon.pn that is currently 57x57, but when I compile I get a warning that it needs to be 72x72. If I make it 72x72 it complains that it needs to be 57x57.

I do understand the problem but I do not know how to solve it, how can I tell xcode which icon is for which device ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟酒忠诚 2024-10-04 00:40:46

您需要在 Info.plist 中提供图标列表。但是,除非您特别指出,否则 iTunes Connect 验证过程目前无法识别 iPad 图标。例如,以下内容将指示 iPhone、Retina 显示屏 iPhone 和 iPad 的图标:

<key>CFBundleIconFile</key>
<string>MyAppIcon.png</string>
<key>CFBundleIconFiles</key>
<array>
    <string>[email protected]</string>
    <string>MyAppIcon.png</string>
    <string>MyAppIcon72.png</string>
</array>
<key>CFBundleIconFiles~ipad</key>
<array>
    <string>MyAppIcon72.png</string>
</array>

You will need to provide a list of icons in your Info.plist. However, the iTunes Connect validation process currently won't recognize the iPad icon unless you call it out specifically. For example, the following will indicate icons for iPhone, Retina display iPhones, and iPad:

<key>CFBundleIconFile</key>
<string>MyAppIcon.png</string>
<key>CFBundleIconFiles</key>
<array>
    <string>[email protected]</string>
    <string>MyAppIcon.png</string>
    <string>MyAppIcon72.png</string>
</array>
<key>CFBundleIconFiles~ipad</key>
<array>
    <string>MyAppIcon72.png</string>
</array>
蘸点软妹酱 2024-10-04 00:40:46

在您的 info.plist 文件中,添加一个具有类型数组的属性并将两个文件放入。

alt text

In your info.plist file, add a property with the type array and put both files in.

alt text

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文