1

我认为这应该被问到,但事实证明它没有被问到。

所以我的问题是:我有一个生成一系列产品的项目,在旧的 XCode 中我指定了加载图像,即每个目标的 Default.png 和 Default@2x.png,它运行良好。现在由于屏幕太高,我不得不为每个目标添加另一个 Default-568h@2x.png。但是每次我在 target->summary 窗格中添加一个时,xcode 都会将此 Default-568h@2x.png 复制到我的项目文件夹中。当我为另一个目标添加另一个 568h 图像时,旧的图像被替换。如何为不同的目标指定不同的 Default-568h@2x.png?

4

1 回答 1

0

在您的info.plist文件中(每个目标都有一个单独的文件),您可以设置这些:

列表

这是目标启动映像的“基本名称”。例如,我有SplashScreenPro.png (non-Retina 3.5")SplashScreenPro@2x (Retina 3.5")SplashScreenPro-568h@2x (4" Retina)

对于我的 Lite 目标,我将 Launch 图像设置为SplashScreenLite.png,并且我有SplashScreenLite.png (non-Retina 3.5")SplashScreenLite@2x (Retina 3.5")SplashScreenLite-568h@2x (4" Retina)

事实证明,Xcode 的 Summary 部分足够聪明,可以关注这些属性,这意味着您不必手动命名文件。

于 2013-05-20T17:22:15.867 回答