[
https://issues.apache.org/jira/browse/CB-3562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704549#comment-13704549
]
Michael Hanselmann edited comment on CB-3562 at 7/10/13 1:32 PM:
-----------------------------------------------------------------
I think you misunderstood. iOS' splashscreen files indeed only support
portrait, but if the application itself is landscape-only, CDVSplashScreen
shows them wrongly once it takes over. I do have a patch, but unfortunately I
am not a position to sign the CLA. However, here are the instruction to
reproduce the issue:
# Create new project
{{~/Downloads/phonegap-2.9.0/lib/ios/bin/create splashdemo
com.example.splashdemo SplashDemo}}
# Configure it to not hide the splash screen (otherwise it's hard to notice
since CDVSplashScreen hides the screen within 250ms)
{{sed -i.orig -e '/AutoHideSplashScreen/ s/"true"/"false"/'
splashdemo/SplashDemo/config.xml}}
# Set application to landscape-only for iPhone (iPad doesn't have the issue)
{{defaults write $PWD/splashdemo/SplashDemo/SplashDemo-Info.plist
UISupportedInterfaceOrientations -array UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight}}
# Open in Xcode
{{open splashdemo/SplashDemo.xcodeproj}}
Now run it in the iPhone simulator. You will notice that while the application
is loading the splash screen shows correctly. Once CDVSplashScreen takes over
the ratio is wrong and only about half of the image is shown at a wrong scale.
was (Author: hansmi):
I think you misunderstood. iOS' splashscreen files indeed only support
portrait, but if the application itself is landscape-only, CDVSplashScreen
shows them wrongly once it takes over. I do have a patch, but unfortunately I
am not a position to sign the CLA. However, here are the instruction to
reproduce the issue:
# Create new project
{{~/Downloads/phonegap-2.9.0/lib/ios/bin/create splashdemo
com.example.splashdemo SplashDemo}}
# Configure it to not hide the splash screen (otherwise it's hard to notice
since CDVSplashScreen hides the screen within 250ms)
{{sed -i.orig -e '/AutoHideSplashScreen/ s/"true"/"false"/'
splashdemo/SplashDemo/config.xml}}
# Set application to landscape-only
{{defaults write $PWD/splashdemo/SplashDemo/SplashDemo-Info.plist
UISupportedInterfaceOrientations -array UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight}}
# Open in Xcode
{{open splashdemo/SplashDemo.xcodeproj}}
Now run it in the iPhone simulator. You will notice that while the application
is loading the splash screen shows correctly. Once CDVSplashScreen takes over
the ratio is wrong and only about half of the image is shown at a wrong scale.
> Wrong splash screen ratio for landscape-only applications
> ---------------------------------------------------------
>
> Key: CB-3562
> URL: https://issues.apache.org/jira/browse/CB-3562
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, Plugin SplashScreen
> Affects Versions: 2.6.0, 2.7.0, 2.9.0
> Reporter: Michael Hanselmann
> Assignee: James Jong
> Fix For: 2.9.0
>
>
> CDVSplashScreen.m shows the splash image with a wrong ratio for
> landscape-only applications on iPhone/iPod touch devices. I fixed it locally
> by applying a 90° transformation (“CGAffineTransformMakeRotation(M_PI / 2)”)
> to the image view.
--
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