gpt4 book ai didi

icons - iOS 8 Action 扩展图标大小

转载 作者:行者123 更新时间:2023-12-04 13:59:58 29 4
gpt4 key购买 nike

在尝试解决此问题时 iOS 8 action extension icon is blank on device (works in simulator)问题,我意识到没有任何可用的信息来说明 iOS 8 操作扩展图标必须具有的大小。另外技术要求“推荐使用PNG”和“单色”也不是很清楚。有谁知道在 XCode 6 中放置操作扩展图标的位置以及它必须具有的尺寸和格式。

最佳答案

来自 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 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 图像 Assets ,并在该集中添加您的图标,并在您的扩展程序和应用程序目标中引用该 Assets 。

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

enter image description here

关于icons - iOS 8 Action 扩展图标大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25917700/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com