iOS 8 Action Extension图标大小 [英] iOS 8 Action Extension icon sizes

查看:477
本文介绍了iOS 8 Action Extension图标大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试解决此问题的同时, iOS 8动作扩展图标在设备上是空白的(在模拟器中工作)问题,我意识到无处可用的信息可以是iOS 8 Action Extension图标必须具有的大小。此外,技术要求推荐PNG和单色并不十分清楚。有没有人知道在XCode 6中放置Action Extension图标的位置以及它必须具有的尺寸和格式。

While trying to solve this iOS 8 action extension icon is blank on device (works in simulator) problem, I realized that nowhere are informations available what size an iOS 8 Action Extension icon must have. Also the technical requierement "PNG is recommended" and "monochromatic" are not very clear. Does anybody know where to place the icon for an Action Extension in XCode 6 and what dimensions and format it must have.

推荐答案

来自文档


iOS。创建表示Action扩展的模板图像。
模板图像是iOS用作掩码的图像,用于创建用户在活动视图控制器中看到的最终
图标。要创建在最终用户界面中看起来不错的
模板图片,请按照以下
指南进行操作:

iOS. Create a template image that represents your Action extension. A template image is an image that iOS uses as a mask to create the final icon that users see in the activity view controller. To create a template image that looks good in the final UI, follow these guidelines:

使用具有适当Alpha透明度的黑色或白色。不要包含
投影。使用抗锯齿。以两种尺寸创建图像:

Use black or white with appropriate alpha transparency. Don’t include a drop shadow. Use antialiasing. Create the image in two sizes:

对于 iPhone ,图像应该在
度量的区域中居中显示60 x 60分

对于 iPad ,图片应该在衡量
的区域中居中strong> 76 x 76点。

For iPad, the image should look good centered in an area that measures 76 x 76 points.

此外,您可以从 HIG


为行动扩展使用应用程序图标的单色版本。
(相比之下,共享扩展程序使用其包含应用程序的全彩
应用程序图标。)要为Action扩展程序创建图标,您可以通过创建应用程序的模板版本来启动
图标。如有必要,可以通过关注使您的图标独特的元素来简化
设计。

Use a monochromatic version of the app icon for an Action extension. (In contrast, a Share extension uses its containing app’s full-color app icon.) To create an icon for an Action extension, you might start by creating a stencil version of your app icon. If necessary, simplify the design by focusing on the elements that make your icon unique.

如果您在包含的应用中提供多个Action扩展,则为
可以很好地为他们创建一系列图标。请务必将
家庭中的每个图标与包含应用的图标相关联。

If you provide multiple Action extensions in your containing app, it can work well to create a family of icons for them. Be sure to make every icon in the family look related to the containing app’s icon.

编辑:
来自文档(搜索图标):


在iOS中,自定义Action扩展使用包含应用程序图标的
的模板图像版本,您必须提供该图标。

In iOS, a custom Action extension uses a template image version of its containing app’s icon, which you must provide.

iOS共享扩展程序会自动使用包含应用程序的图标。
如果您在共享扩展目标中提供单独的图标,Xcode
将忽略它。对于所有其他应用扩展程序类型,您必须提供与包含应用程序图标匹配的
图标。

iOS Share extensions automatically employ the containing app’s icon. If you provide a separate icon in your Share extension target, Xcode ignores it. For all other app extension types, you must provide an icon that matches the containing app’s icon.

有关如何向应用扩展程序添加图标的信息,请参阅
创建资产目录添加应用程序图标集或启动图像
设置。有关iOS应用扩展程序的图标要求的更多信息,请参阅iOS人机界面指南中的App
扩展程序

For information on how to add an icon to your app extension, see Creating an Asset Catalog and Adding an App Icon Set or Launch Image Set. For more about icon requirements for iOS app extensions, see "App Extensions" in iOS Human Interface Guidelines

编辑2:
在您的扩展程序文件夹中创建一个AppIcon图像资源,并在该集合中添加您的图标,并在您的扩展程序和应用程序目标中引用该资产。

Edit 2: Create an AppIcon image asset in your extension's folder and add your icons in that set and reference that asset in your extension's and app targets.

还要确保您的扩展程序图标具有完全透明的背景,而不是纯白色。除透明以外的任何颜色都将显示为深灰色。

Also make sure that your extension icon have a fully transparent background, and not a solid white. Any colour other than transparent, will be shown as solid dark grey.

这篇关于iOS 8 Action Extension图标大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆