incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominic N. Sotirescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1590) 2 Splash screens on iPhone5
Date Mon, 08 Oct 2012 20:52:05 GMT

    [ https://issues.apache.org/jira/browse/CB-1590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471845#comment-13471845
] 

Dominic N. Sotirescu commented on CB-1590:
------------------------------------------

Sorry, I already replied to you 2 times. I could not try the Edge release because NOWHERE
on your site it explains where to get it. Which one of the depos on GitHub is is stored on?
In the meantime I got a fix from Gaz which solves the problem, you can see it in on the google
PhoneGap group:

here it is:

In the CDVViewController.m file, in the showSplashScreen function, it picks what file to show
for the splash screen, but doesn't pick the larger one when running on iPhone 5. Look for
this bit of code


else // not iPad
    {
	orientedLaunchImageFile = launchImageFile;
    }


and change it to

else // not iPad
    {
	if ( [UIScreen mainScreen].bounds.size.height == 568 )
	{
		orientedLaunchImageFile = [NSString stringWithFormat:@"%@-568h", launchImageFile];
	}
	else
	{
		orientedLaunchImageFile = launchImageFile;
	}
    }



See if you can use this in your latest code.

Dominic





                
> 2 Splash screens on iPhone5
> ---------------------------
>
>                 Key: CB-1590
>                 URL: https://issues.apache.org/jira/browse/CB-1590
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: MacBook Air, XCode 4.5, iOS6 on iPhone5
>            Reporter: Dominic N. Sotirescu
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> The iPhone5 splash screen (Default-568h@2x.png, 640x1136) appears, I hide it (using navigator.splashscreen.hide();)
and then another splash screen appears (the iPhone4 size with gaps at the top and bottom).
> It only happens on iPhone5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message