Updated Branches: refs/heads/master 89ea74327 -> 98114c5eb
Fixed incorrect alignment of splashscreen image at startup because of recent Cleaver changes. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/98114c5e Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/98114c5e Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/98114c5e Branch: refs/heads/master Commit: 98114c5eb1bd228961d08f22d1caa10f1274a24a Parents: 89ea743 Author: Shazron Abdullah <shaz...@apache.org> Authored: Mon Jan 30 12:28:02 2012 -0800 Committer: Shazron Abdullah <shaz...@apache.org> Committed: Mon Jan 30 12:28:02 2012 -0800 ---------------------------------------------------------------------- PhoneGap-based Application/Classes/AppDelegate.m | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/98114c5e/PhoneGap-based Application/Classes/AppDelegate.m ---------------------------------------------------------------------- diff --git a/PhoneGap-based Application/Classes/AppDelegate.m b/PhoneGap-based Application/Classes/AppDelegate.m index a0ebe03..f6e72f4 100644 --- a/PhoneGap-based Application/Classes/AppDelegate.m +++ b/PhoneGap-based Application/Classes/AppDelegate.m @@ -67,12 +67,11 @@ NSLog(@"___PROJECTNAME___ launchOptions = %@", url); } - CGRect screenBounds = [[UIScreen mainScreen] applicationFrame]; + CGRect screenBounds = [[UIScreen mainScreen] bounds]; self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease]; self.window.autoresizesSubviews = YES; - CGRect viewBounds = screenBounds; - viewBounds.origin.y = 0; + CGRect viewBounds = [[UIScreen mainScreen] applicationFrame]; self.viewController = [[[MainViewController alloc] init] autorelease]; self.viewController.useSplashScreen = YES;