Gary Smith created CB-1587:
------------------------------
Summary: Wrong splash screen shown on iPhone 5
Key: CB-1587
URL: https://issues.apache.org/jira/browse/CB-1587
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 2.1.0
Reporter: Gary Smith
Assignee: Shazron Abdullah
Priority: Minor
When running on a iPhone 5, the Splash screen show is the Default.png instead
of the Default-568h.png file.
To fix, in the CDVViewController.m file, in the showSplashScreen function, 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 ) // or some other
method of determining if on iPhone 5
{
orientedLaunchImageFile = [NSString stringWithFormat:@"%@-568h",
launchImageFile];
}
else
{
orientedLaunchImageFile = launchImageFile;
}
}
--
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