You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/09/14 00:58:42 UTC
git commit: [CB-4806] Update splashscreen image bounds for iOS 7
Updated Branches:
refs/heads/master 079bd6fc6 -> 96d5875dc
[CB-4806] Update splashscreen image bounds for iOS 7
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/96d5875d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/96d5875d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/96d5875d
Branch: refs/heads/master
Commit: 96d5875dc38515c75c969284d252ed1cfbb34310
Parents: 079bd6f
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Sep 13 15:58:36 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Sep 13 15:58:36 2013 -0700
----------------------------------------------------------------------
src/ios/CDVSplashScreen.m | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/96d5875d/src/ios/CDVSplashScreen.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m
index ba8d108..8159ce1 100644
--- a/src/ios/CDVSplashScreen.m
+++ b/src/ios/CDVSplashScreen.m
@@ -171,6 +171,9 @@
if (CGSizeEqualToSize(screenSize, imgBounds.size)) {
CGRect statusFrame = [self.viewController.view convertRect:[UIApplication sharedApplication].statusBarFrame fromView:nil];
imgBounds.origin.y -= statusFrame.size.height;
+ if (!(IsAtLeastiOSVersion(@"7.0"))) {
+ imgBounds.origin.y -= statusFrame.size.height;
+ }
} else {
CGRect viewBounds = self.viewController.view.bounds;
CGFloat imgAspect = imgBounds.size.width / imgBounds.size.height;