xcode 如何向 iPhone 应用程序添加图标?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2558092/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:15:10  来源:igfitidea点击:

How can I add an icon to an iPhone application?

iphoneobjective-cxcode

提问by isarathg

Will simply putting an image into the project folder do it?

只需将图像放入项目文件夹就可以吗?

采纳答案by progrmr

  1. Create your image sized 57x57 pixels (for iPhone).
  2. Name it Icon.png(you can change this name in Info.plist)
  3. Add it to the Resources folder in Xcode.
  1. 创建大小为 57x57 像素的图像(适用于 iPhone)。
  2. 将其命名为Icon.png(您可以在 Info.plist 中更改此名称)
  3. 将其添加到 Xcode 的 Resources 文件夹中。

That should get you started and there are more details here.You may also want to add a smaller icon for the Settings app (29x29 called Icon-settings.png).

这应该会让你开始,这里有更多细节。您可能还想为“设置”应用添加一个较小的图标(29x29,称为Icon-settings.png)。

回答by stefanB

Apple iPhone Human Interface Guidelines:

Apple iPhone 人机界面指南:

Name your icon file Icon.png and place it at the top level of your application bundle.

将您的图标文件命名为 Icon.png 并将其放在应用程序包的顶层。