3

我正在 iOS 上开发一个 phonegap 应用程序,并在带有 IOS 6.1 的 iPhone 4 上进行测试。我已经从启动文件夹中定义了所有启动屏幕,但这仍然无法按预期工作。首先,启动画面被正确加载,全尺寸,但是当加载指示器出现时,图像被缩小并显示为白色背景。它看起来很丑。如何解决这个问题?

谢谢大家。

4

2 回答 2

1

找到了一个“肮脏”的解决方案:

在 CDVViewController.m 中替换

    if (launchImageFile == nil) { // fallback if no launch image was specified
    if (CDV_IsIPhone5()) {
        // iPhone 5 or iPod Touch 6th-gen
        launchImageFile = @"Default-568h";
    } else {
        launchImageFile = @"Default";
    }
}

if (launchImageFile == nil) { // fallback if no launch image was specified
    if (CDV_IsIPhone5()) {
        // iPhone 5 or iPod Touch 6th-gen
        launchImageFile = @"Default-568h";
    } else {
        launchImageFile = @"Default-568h"; //iphone5 image
    }
}

但是寻找更好的解决方案...

于 2013-02-19T09:17:34.837 回答
0

似乎 Cordova 只在 iPhone 5 和 iPod 之间产生差异。虽然我可以找到 iPad 方向和匹配初始屏幕的逻辑,但我找不到旧 Retina iPhone + 甚至更旧的原始屏幕分辨率的功能。不小心漏掉了?

于 2013-03-05T07:53:26.690 回答