incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject git commit: Fixed CB-212 - iOS orientation switch broken in 1.4.0
Date Wed, 01 Feb 2012 01:26:50 GMT
Updated Branches:
  refs/heads/master 0f254cd1e -> fa3271e59


Fixed CB-212 - iOS orientation switch broken in 1.4.0


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

Branch: refs/heads/master
Commit: fa3271e595eae87be69cac1b069f2d68a4721954
Parents: 0f254cd
Author: Shazron Abdullah <shazron@apache.org>
Authored: Tue Jan 31 17:26:43 2012 -0800
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Tue Jan 31 17:26:43 2012 -0800

----------------------------------------------------------------------
 .../Classes/MainViewController.m                   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/fa3271e5/PhoneGap-based
Application/Classes/MainViewController.m
----------------------------------------------------------------------
diff --git a/PhoneGap-based Application/Classes/MainViewController.m b/PhoneGap-based Application/Classes/MainViewController.m
index 1e2c833..701d7dc 100644
--- a/PhoneGap-based Application/Classes/MainViewController.m	
+++ b/PhoneGap-based Application/Classes/MainViewController.m	
@@ -41,7 +41,7 @@
 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
 {
     // Return YES for supported orientations
-    return (interfaceOrientation == UIInterfaceOrientationPortrait);
+    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
 }
 
 @end


Mime
View raw message