如何使用 Xcode 4.3.1 将应用程序图标添加到项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9818578/
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
How to add app icon to project using Xcode 4.3.1
提问by user836026
How do I add an application icon to my project using Xcode 4.3.1?
如何使用 Xcode 4.3.1 向我的项目添加应用程序图标?
回答by Mick MacCallum
Drag and drop the icon files you create into Xcode. They should be named Icon.png -- 57x57 for iPhone [email protected] -- 114x114 retina
将您创建的图标文件拖放到 Xcode 中。它们应该被命名为 Icon.png -- iPhone [email protected] 57x57 -- 114x114 视网膜
Icon-72.png,icon-Small.png and Icon-Small-50.png etc...
Icon-72.png,icon-Small.png 和 Icon-Small-50.png 等...
then drag them here in Xcode
然后将它们拖到 Xcode 中
回答by MCKapur
You drag and drop the file in from the finder or a location on you're computer to Xcode supporting files. Make sure it is called icon.png and other names for other resolutions / versions etc... If it still deosnt come up go to project then target then same drag and drop into the application icon template
您将文件从查找器或计算机上的某个位置拖放到 Xcode 支持文件中。确保它被称为 icon.png 和其他分辨率/版本等的其他名称......如果它仍然没有出现,请转到项目然后目标然后将相同的拖放到应用程序图标模板中
回答by Kedar Paranjape
Download Asset Catalog Creator Freefrom iTunes. All you have to do is select a base image, and the program will create all required iOS icon sizes for you and place them neatly in an .xcassets
file, which you can simply drag into Xcode. Much easier than worrying about the sizes/resolutions of individual icons.
从 iTunes免费下载Asset Catalog Creator。您所要做的就是选择一个基本图像,该程序将为您创建所有所需的 iOS 图标大小,并将它们整齐地放在一个.xcassets
文件中,您只需将其拖入 Xcode。比担心单个图标的大小/分辨率要容易得多。