ios - 在 config.xml 中为 IOS 命名闪屏文件 (Phonegap)

标签 ios iphone ipad cordova phonegap-build

我们正在为我们的应用程序使用 phonegap,现在我们在 conig.xml 中添加启动画面,但在阅读有关文件名称的 IOS 和 Phonegap 文档后,我们有点困惑。

Phonegap 文档说:

<gap:splash src="splash/ios/Default.png" gap:platform="ios" width="320" height="480" /><gap:splash src="splash/ios/Default_at_2x.png" gap:platform="ios" width="640" height="960"/>
<gap:splash src="splash/ios/Default_iphone5.png" gap:platform="ios" width="640" height="1136" />
<gap:splash src="splash/ios/Default-Landscape.png" gap:platform="ios" width="1024" height="748" />
<gap:splash src="splash/ios/Default-Portrait.png" gap:platform="ios" width="768" height="1004" />

<!-- retina iPad support: PhoneGap 2.5.0+ only -->
<gap:splash src="splash/ios/Default-Landscape_at_2x.png" gap:platform="ios" width="2048" height="1496" />
<gap:splash src="splash/ios/Default-Portrait_at_2x.png" gap:platform="ios" width="1536" height="2008" />

IOS 文档说:

<basename><usage_specific_modifiers><scale_modifier><device_modifier>.png

Default-568h@2x~iphone.png (640x1136 pixels) Default-Landscape@2x~ipad.png (2048x1496 pixels) Default-Landscape~ipad.png (1024x748 pixels) Default-Portrait@2x~ipad.png (1536x2008 pixels) Default-Portrait~ipad.png (768x1004 pixels) Default@2x~iphone.png (640x960 pixels) Default~iphone.png (320x480 pixels)

我们应该按照 IOS 文档中的说明重命名 config.xml 中的名称,还是由 phonegap 构建谁来做?

谢谢!

最佳答案

Phonegap build 做到了。那是我的编译(重命名 .ipa 到 .zip)来自 phonegap 构建,我在 checkin 的代码中没有这些名称。 . .

enter image description here

关于ios - 在 config.xml 中为 IOS 命名闪屏文件 (Phonegap),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19835439/

相关文章:

ios - 如何在 Swift 中为 URL 编码大型数据对象?

ios - 为什么添加可选时此代码有效?

ios - 使用 iOS 8 beta 版本 : "Unable to boot the iOS Simulator" 打开 iOS 模拟器时出错

iphone - 链接器命令失败,退出代码为1-不知道为什么

iphone - 退出应用后重置亮度

iphone - 合并图像和视频以制作完整的电影

iOS XCUITest模拟指纹

iphone - 确保对象在 block 延迟调用时存在

swift - 如何将应用程序的方向锁定为 iPhone 的纵向*仅*?

html - 如何为笔记本电脑 1024px 和 ipad 1024px 宽度设置不同的媒体查询?