为什么图像没有显示在我的 Apple Watch 应用程序中?

Why are images not showing in my Apple Watch app?

我在我的 Apple Watch 应用程序中创建了一个菜单。用力触摸时我可以看到图像,但是当我使用自定义图像时,我只看到一个黑色圆圈,没有其他任何东西。

Here is my Apple Watch screen. Add three images are displaying but the custom image is not displaying for drink.

我正在 storyboard 界面中创建此菜单。

确保您的自定义图标图像遵循 HIG 中规定的准则:https://developer.apple.com/watch/human-interface-guidelines/specifications/

42 毫米手表需要 80x80 图标,28 毫米手表需要 70x70 图标。您的图标背景应该是透明的。

对于我来说,还可以。

首先,删除透明胶片和 alpha 通道(这可以简单地从预览中的“另存为”对话框中完成)

其次,您必须使用正确的尺码:

  • 80*80
  • 70*70

注意:第一个是42mm的,第二个是38mm的。