Phonegap (cordova) 2.4.0. Screen saver reduced

I am developing a phonegap app on iOS and am testing iPhone 4 with IOS 6.1. I have identified all the popups from the splash folder, but still it doesn't work as expected. The splash screen is loaded correctly at first, full size, but when the loading progress bar appears, the image is zoomed out and displayed against a white background. It looks ugly. How can this be fixed?

Thanks everyone.

+3


source to share


2 answers


Found a "dirty" solution:

In CDVViewController.m replace

    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";
    }
}

      



FROM

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
    }
}

      

But looking for the best solution for this ...

+1


source


It seems that Cordova only makes the difference between the iPhone 5 and the iPod. while I can find the logic to orient the iPad and match splash screens, I couldn't find features for the old Retina iPhone + even the older original screen resolution. Omitted by chance?



0


source







All Articles