如何在 Xcode 中为 tvOS 应用程序设置应用程序图标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33459088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to set up App Icons for tvOS Apps in Xcode
提问by Scott Null
Just got the new Apple TV and I am trying to setup App Icons for a new app. It is asking for Front, Middle and Back images for both "App Icon - Large" and for "App Icon Small". I have tried putting a 512x512 image in for Middle and get the following error:
刚拿到新的 Apple TV,我正在尝试为新应用设置应用图标。它要求“应用程序图标 - 大”和“应用程序图标小”的前、中和后图像。我尝试将 512x512 图像放入 Middle 并收到以下错误:
The last image stack layer with content, "Middle", must exactly fill the image stack. Its current frame is {{384, 128}, {512, 512}} while the image stack's size is {1280, 768}.
具有内容的最后一个图像堆栈层“中间”必须完全填充图像堆栈。它的当前帧是 {{384, 128}, {512, 512}} 而图像堆栈的大小是 {1280, 768}。
Does a 1280x768 image need to be used? More importantly, what exactly is needed in terms of image assets for tvOS Apps?
是否需要使用 1280x768 图像?更重要的是,tvOS 应用程序的图像资产究竟需要什么?
回答by Eliran
You need at least 2 images for both the App Icon - Large & App Icon - Small (So total of 4 images - I used at first just the front & back, then I used all three layers for a total of 6 images)
应用程序图标 - 大和应用程序图标 - 小号至少需要 2 张图像(总共 4 张图像 - 我最初只使用正面和背面,然后我使用了所有三层,总共 6 张图像)
The large icon is 1280x768, and the small one is 400 x 240
大图标为 1280x768,小图标为 400 x 240
Apple's document:
苹果的文档:
https://developer.apple.com/tvos/human-interface-guidelines/icons-and-images/
https://developer.apple.com/tvos/human-interface-guidelines/icons-and-images/
Doesn't seems to specify that you only need one image for the 1280x768. But I wasn't able to submit my App with just one image. I rendered my icons in the full 1280x768 size and then scaled to 400 x 240.
似乎没有指定您只需要一张 1280x768 的图像。但是我无法仅用一张图片提交我的应用程序。我以 1280x768 的完整尺寸呈现我的图标,然后缩放到 400 x 240。
In addition, you need to add the Top Shelf image which is 1920 x 720
此外,您需要添加 1920 x 720 的 Top Shelf 图片