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 2012/02/01 02:26:50 UTC

git commit: Fixed CB-212 - iOS orientation switch broken in 1.4.0

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 <sh...@apache.org>
Authored: Tue Jan 31 17:26:43 2012 -0800
Committer: Shazron Abdullah <sh...@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