Re: phonegap 2.1+iOS 6 can't set AutoHideSplashScreen on iPhone 5

880 views
Skip to first unread message

Jesper Hessius

unread,
Sep 17, 2012, 2:09:48 PM9/17/12
to phon...@googlegroups.com
Hi, I posted this issue on Stackoverflow as well: http://stackoverflow.com/questions/12450603/iphone-5-splashscreen-not-displaying-correctly-phonegap

Den söndagen den 16:e september 2012 kl. 21:26:09 UTC+2 skrev Jesper Hessius:
Hi!
I'm experiencing this issue as well, if you find a solution, please post here!

Den lördagen den 15:e september 2012 kl. 12:16:48 UTC+2 skrev T123:
Hi All,

I added new splash screen to xcode 4.5 (640x1136 - Defaul...@2x.png),
When run on emulator, splash screen display correct but can't set AutoHideSplashScreen to NO, splash screen still auto hide (work OK on other iDevices/emulator).
And now I set splash screen for both 3.5-inch and 4-inch, when run on 4-inch emulator, splash screen show both image for 3.5-inch and 4-inch ( display 4-inch image first, auto hide, display 3.5-inch with white space on top and bottom).

Please help me fix this problem.

Sorry, my English isn't good.

T.

Jesper Hessius

unread,
Sep 17, 2012, 3:18:27 PM9/17/12
to phon...@googlegroups.com
Seems to be a bug in PhoneGap: Brion posted a bug (and will try to patch it later today) https://issues.apache.org/jira/browse/CB-1482

T123

unread,
Sep 18, 2012, 1:37:10 PM9/18/12
to phon...@googlegroups.com

Fixed.

open CDVViewController.m -- find  - (void) showSplashScreen

change about line: 690 

From :

else // not iPad

    {

        orientedLaunchImageFile = launchImageFile;

    }

To:

else // not iPad

    {

        orientedLaunchImageFile = launchImageFile;

        /* Edited for 4-inch IP5 */

        if(screenBounds.size.height == 568)

            orientedLaunchImageFile = [NSString stringWithFormat:@"%@-568h", launchImageFile];

Adam Ware

unread,
Sep 24, 2012, 9:26:04 PM9/24/12
to phon...@googlegroups.com
Is there a fix for pre-1.4.1 phonegap ?  

Jesper Hessius

unread,
Sep 25, 2012, 3:00:08 AM9/25/12
to phon...@googlegroups.com
I wouldn't rely on pre-1.4.1 for much in the ways of iOS 6 support. Time for an upgrade ;)
Reply all
Reply to author
Forward
0 new messages