图标 – iOS 8 Action Extension图标大小

前端之家收集整理的这篇文章主要介绍了图标 – iOS 8 Action Extension图标大小前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在尝试解决这个 iOS 8 action extension icon is blank on device (works in simulator)问题的过程中,我意识到无处可用的信息是iOS 8 Action Extension图标必须具有的大小.此外,技术要求“推荐PNG”和“单色”也不是很清楚.有没有人知道在XCode 6中放置Action Extension图标的位置以及它必须具有的尺寸和格式.

解决方法

Documentation

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:

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

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

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

此外,您可以从HIG获得更多信息.

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.

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.

编辑:
Documentation(搜索图标):

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

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.

For information on how to add an icon to your app extension,see
07003 and 07004 or Launch Image
Set. For more about icon requirements for iOS app extensions,see “App
Extensions” in iOS Human Interface Guidelines

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

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

原文链接:https://www.f2er.com/iOS/328575.html

猜你在找的iOS相关文章