ios 我在哪里设置 iPhone 应用程序中的应用程序图标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6494766/
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
Where do I set the application icon in an iphone app
提问by Saro Khatchatourian
I wrote an app for iphone. All is working. I see it in an ipod. I have done all the testings and thanks to you guys I was able to resolve all my issues so far. Where do I set my application icon? I know it is in info.plist. But how do I change it? Thanks Saro
我为 iphone 编写了一个应用程序。一切都在工作。我在 iPod 上看到它。我已经完成了所有的测试,感谢你们,到目前为止我能够解决我所有的问题。我在哪里设置我的应用程序图标?我知道它在 info.plist 中。但是我该如何改变呢?谢谢萨罗
回答by sergio
This is what I have in my Info.plist for the icons of all supported devices (ipod, iphone, retina display, ipad):
这是我在 Info.plist 中所有受支持设备(ipod、iphone、retina 显示器、ipad)图标的内容:
The @2x
files refer to retina display. The -72
refer to ipad.
这些@2x
文件是指视网膜显示。该-72
参考的iPad。
EDIT:
编辑:
This is the textual representation of the list above in my info.plist file:
这是我的 info.plist 文件中上述列表的文本表示:
<key>Icon files</key>
<array>
<string>Icon.png</string>
<string>[email protected]</string>
<string>Icon-72.png</string>
<string>Icon-Small-50.png</string>
<string>Icon-Small.png</string>
<string>[email protected]</string>
</array>
XCode 4 EDIT;
XCode 4 编辑;
As of Xcode 4, the best way to set the icons for your app is to access the Summary pane of your target settings, as displayed in the image below, and drag-drop the icons on the available controls (separately for iPhone and iPad, retina and non-retina).
从 Xcode 4 开始,为您的应用程序设置图标的最佳方法是访问目标设置的摘要窗格,如下图所示,并将图标拖放到可用控件上(分别用于 iPhone 和 iPad,视网膜和非视网膜)。
回答by Caleb
If you're using Xcode 4, the easiest way to change the icon is to drag a new icon into the App Icon pane of the target summary panel. Select your project in the project navigator, click on your target, select the Summary tab, and if necessary scroll down a bit until you see the App Icon pane. If you don't see it, try clicking the disclosure triangle next to the "iPad/iPhone Deployment Info" title. You can also set things like the main nib, supported orientations, and launch image(s).
如果您使用的是 Xcode 4,更改图标的最简单方法是将新图标拖到目标摘要面板的 App Icon 面板中。在项目导航器中选择您的项目,单击您的目标,选择摘要选项卡,如有必要,向下滚动一点,直到看到应用程序图标窗格。如果您没有看到它,请尝试单击“iPad/iPhone 部署信息”标题旁边的显示三角形。您还可以设置诸如主要笔尖、支持的方向和启动图像等内容。
回答by Mic Pringle
See the Icon and Image Designsection of the mobile HIG, which provides details about every icon you need and how to configure them appropriately.
请参阅移动 HIG的图标和图像设计部分,其中提供了有关您需要的每个图标以及如何适当配置它们的详细信息。
回答by John
For latest versions of Xcode, do the following:
对于最新版本的 Xcode,请执行以下操作:
1) Go to image assets, 2) Select App Icon 3) Drag and drop necessary files
1) 转到图像资产,2) 选择应用程序图标 3) 拖放必要的文件