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/08/15 23:41:39 UTC

ios commit: CB-11238 - Expose supportedOrientations methods so native code can override the current behavior

Repository: cordova-ios
Updated Branches:
  refs/heads/master a26aae0c4 -> 6c9ce1f74


CB-11238 - Expose supportedOrientations methods so native code can override the current behavior

 This closes #203


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

Branch: refs/heads/master
Commit: 6c9ce1f7483be5bbeab9234d0583aa387a27ea84
Parents: a26aae0
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Mar 11 13:46:45 2016 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Aug 15 16:40:57 2016 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/Public/CDVViewController.h | 6 ++++++
 CordovaLib/Classes/Public/CDVViewController.m | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/6c9ce1f7/CordovaLib/Classes/Public/CDVViewController.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Public/CDVViewController.h b/CordovaLib/Classes/Public/CDVViewController.h
index a8a35d3..90d33d2 100644
--- a/CordovaLib/Classes/Public/CDVViewController.h
+++ b/CordovaLib/Classes/Public/CDVViewController.h
@@ -64,6 +64,12 @@
 @property (nonatomic, readwrite, copy) NSString* baseUserAgent;
 
 /**
+	Takes/Gives an array of UIInterfaceOrientation (int) objects
+	ex. UIInterfaceOrientationPortrait
+*/
+@property (nonatomic, readwrite, strong) NSArray* supportedOrientations;
+
+/**
  The address of the lock token used for controlling access to setting the user-agent
  */
 @property (nonatomic, readonly) NSInteger* userAgentLockToken;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/6c9ce1f7/CordovaLib/Classes/Public/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Public/CDVViewController.m b/CordovaLib/Classes/Public/CDVViewController.m
index 4d4cd47..14b95ea 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -37,7 +37,6 @@
 @property (nonatomic, readwrite, strong) NSMutableDictionary* pluginObjects;
 @property (nonatomic, readwrite, strong) NSMutableArray* startupPluginNames;
 @property (nonatomic, readwrite, strong) NSDictionary* pluginsMap;
-@property (nonatomic, readwrite, strong) NSArray* supportedOrientations;
 @property (nonatomic, readwrite, strong) id <CDVWebViewEngineProtocol> webViewEngine;
 
 @property (readwrite, assign) BOOL initialized;


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