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 to share