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 2016/10/08 00:24:58 UTC

ios commit: CB-11729 - template file MainViewController.m has deprecated override shouldAutorotateToInterfaceOrientation

Repository: cordova-ios
Updated Branches:
  refs/heads/master 636113f04 -> a956c93e2


CB-11729 - template file MainViewController.m has deprecated override shouldAutorotateToInterfaceOrientation

 This closes #266


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/a956c93e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/a956c93e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/a956c93e

Branch: refs/heads/master
Commit: a956c93e2cf9f5f23b1880fdd0d43a9f0d113521
Parents: 636113f
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Oct 7 16:26:36 2016 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Oct 7 17:24:05 2016 -0700

----------------------------------------------------------------------
 .../Classes/MainViewController.m                | 21 ++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/a956c93e/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m
----------------------------------------------------------------------
diff --git a/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m b/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m
index 212e998..7dfe48f 100644
--- a/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m
+++ b/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m
@@ -84,12 +84,6 @@
     // e.g. self.myOutlet = nil;
 }
 
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
-    // Return YES for supported orientations
-    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
-}
-
 /* Comment out the block below to over-ride */
 
 /*
@@ -97,6 +91,21 @@
 {
     return[super newCordovaViewWithFrame:bounds];
 }
+
+- (NSUInteger)supportedInterfaceOrientations 
+{
+    return [super supportedInterfaceOrientations];
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
+{
+    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
+}
+
+- (BOOL)shouldAutorotate 
+{
+    return [super shouldAutorotate];
+}
 */
 
 @end


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org