简体   繁体   English

如何更改 xcode 应用程序图标?

[英]how to change xcode app icon?

I have been trying to change my apps icon, but i cannot seem to do it.我一直在尝试更改我的应用程序图标,但我似乎无法做到。 I have been following this example: https://developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/chapters/AddingLaunchImagestoanAssetCatalog.html我一直在关注这个例子: https : //developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/chapters/AddingLaunchImagestoanAssetCatalog.html

but no matter what i do, i cannot get the icon to change.但无论我做什么,我都无法改变图标。 whenever i add an image, it just gives me an error saying that it is the incorrect size, but when i change the size of the image xcode tells me a new size.每当我添加图像时,它只会给我一个错误,说它的大小不正确,但是当我更改图像的大小时,xcode 会告诉我一个新的大小。

is there something that isn't in this example that i would be missing?在这个例子中是否有我会遗漏的东西?

This is a good way, you should do something like this: 这是一个好方法,你应该这样做:

在此处输入图片说明

For example:例如:

  • 40pt - 120:120 for @3x, 80:80 for @2x , 40:40 for @1x 40pt - @3x 为 120:120,@2x 为 80:80,@1x 为 40:40
  • for artworks 512:512 for @1x and 1024:1024 for @2x对于艺术品,@1x 为 512:512,@2x 为 1024:1024

Be attentive with icon sizes, and everything will be ok :)注意图标大小,一切都会好的:)

I personally like to use this site to make my app icons.我个人喜欢使用这个网站来制作我的应用程序图标。 Just upload a fairly large icon artwork and they will send you an email with all the configured sizes.只需上传一个相当大的图标艺术品,他们就会向您发送一封包含所有配置尺寸的电子邮件。

In the file, go into the iOS folder and look for a folder called AppIcon.appiconset .在该文件中,进入iOS文件夹并查找名为AppIcon.appiconset的文件夹。 Copy that.收到。

Go into your app's source folder and into your images.xcassets folder.进入应用程序的源文件夹和images.xcassets文件夹。 Now paste in that copied folder and say replace.现在粘贴到复制的文件夹中并说替换。

Resize them manually and then add them there by drag and drop手动调整它们的大小,然后通过拖放将它们添加到那里

example: Size = 1x * 29pt = 29x29示例:尺寸 = 1x * 29pt = 29x29

Here is a link to the section on images and icons in the Apples humane interface guidelines , it goes over the different sizes that you need.这是Apples 人性化界面指南中有关图像和图标部分的链接,它涵盖了您需要的不同尺寸。 And don't forget to append the @2x and @3x to the name of your icons!并且不要忘记将@2x 和@3x 附加到您的图标名称!

First you need to convert the image then drag it into assets -> AppIcon首先您需要转换图像然后将其拖入资产 -> AppIcon

visit this website for converting icon https://makeappicon.com访问此网站以转换图标https://makeappicon.com

After converting the icon on the website they will mail you all the converted icons on your mail id, then you need to select the image icon form the provided list according to the size.在网站上转换图标后,他们会将您邮件ID上的所有转换图标邮寄给您,然后您需要根据大小从提供的列表中选择图像图标。 在此处输入图片说明

Question and answers in this page are outdated.此页面中的问题和答案已过时。

This worked best for me: iOS how to set app icon and launch images这对我最有效: iOS 如何设置应用程序图标和启动图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM