incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From becka...@apache.org
Subject [8/50] git commit: Fixed splashscreens in new PGViewController.
Date Fri, 13 Jan 2012 15:59:06 GMT
Fixed splashscreens in new PGViewController.


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/2f4bb119
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/2f4bb119
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/2f4bb119

Branch: refs/heads/master
Commit: 2f4bb119721d8b04a3e9a184b38034240c58d7fb
Parents: 0fcc80d
Author: shazron <shazron@gmail.com>
Authored: Tue Jan 10 10:34:06 2012 -0800
Committer: shazron <shazron@gmail.com>
Committed: Tue Jan 10 10:34:06 2012 -0800

----------------------------------------------------------------------
 PhoneGapLib/Classes/PGViewController.m |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/2f4bb119/PhoneGapLib/Classes/PGViewController.m
----------------------------------------------------------------------
diff --git a/PhoneGapLib/Classes/PGViewController.m b/PhoneGapLib/Classes/PGViewController.m
index 9606bb3..3bdb711 100644
--- a/PhoneGapLib/Classes/PGViewController.m
+++ b/PhoneGapLib/Classes/PGViewController.m
@@ -301,7 +301,7 @@
     if (autoHideSplashScreenValue == nil || [autoHideSplashScreenValue boolValue]) {
         self.imageView.hidden = YES;
         self.activityView.hidden = YES;    
-        [self.view bringSubviewToFront:self.webView];
+        [self.view.superview bringSubviewToFront:self.webView];
     }
     
     [self didRotateFromInterfaceOrientation:(UIInterfaceOrientation)[[UIDevice currentDevice]
orientation]];
@@ -542,7 +542,7 @@
     
     self.imageView.autoresizingMask = (UIViewAutoresizingFlexibleWidth & UIViewAutoresizingFlexibleHeight
& UIViewAutoresizingFlexibleLeftMargin & UIViewAutoresizingFlexibleRightMargin); 
  
     [self.imageView setTransform:startupImageTransform];
-    [self.view addSubview:self.imageView];
+    [self.view.superview addSubview:self.imageView];
     
     
     /*
@@ -570,13 +570,13 @@
     id showSplashScreenSpinnerValue = [self.settings objectForKey:@"ShowSplashScreenSpinner"];
     // backwards compatibility - if key is missing, default to true
     if (showSplashScreenSpinnerValue == nil || [showSplashScreenSpinnerValue boolValue])
{
-        [self.view addSubview:self.activityView];
+        [self.view.superview addSubview:self.activityView];
     }
     
     self.activityView.center = self.view.center;
     [self.activityView startAnimating];
     
-    [self.view layoutSubviews];
+    [self.view.superview layoutSubviews];
 }    
 
 BOOL gSplashScreenShown = NO;


Mime
View raw message