简体   繁体   English

适用于Universal iOS应用的设备专用图形

[英]Device specific Graphics for Universal iOS app

I've configured my app as Universal in Target/General/DeploymentInfo 我已经在Target / General / DeploymentInfo中将我的应用配置为通用

Is it ok to make device specific assets in the xcassets file for iPhone and iPad, even though the app as a whole is Universal ? 即使应用整体上是通用的也可以在 iPhone和iPad的xcassets文件中制作设备专用资产吗? It seems to work, but I'm worried if there is some catch. 似乎可行,但我担心是否有问题。

Background: I plan to add 2X and 3X versions of some assets in the 2x and 3x boxes in the iPhone section, and 2X and 4X versions in the 1x and 2x boxes in the iPad part. 背景:我计划在iPhone部分的2x和3x框中添加某些资产的2X和3X版本,并在iPad部分的1x和2x框中添加2X和4X版本。 I use a capital X to describe the scale of my assets. 我用大写的X表示我的资产规模。

Note, that the 2X asset will be used twice. 请注意,该2X资产将被使用两次。 Both in iPhone and iPad. 在iPhone和iPad中都可以。 Maybe there's a way around that? 也许有办法解决?

Nothing wrong with this at all. 一点都没错。

Where I work, we've done this for our games: different asset bundles are downloaded depending on the device the game is running on. 在我工作的地方,我们已经为游戏完成了此工作:根据运行游戏的设备下载了不同的资产捆绑包。

This allows us to adjust for older hardware, like iPad 2. 这使我们能够适应较旧的硬件,例如iPad 2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM