Updated Branches: refs/heads/master 2cef31367 -> 23b7600df
Setting supportedOrientations in view controller's init method 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/23b7600d Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/23b7600d Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/23b7600d Branch: refs/heads/master Commit: 23b7600dffab2aec430ff2e4b112aec379515133 Parents: 2cef313 Author: Kevin Hawkins <khawk...@salesforce.com> Authored: Tue Aug 7 19:31:45 2012 -0700 Committer: Andrew Grieve <agri...@chromium.org> Committed: Wed Aug 8 11:49:16 2012 -0400 ---------------------------------------------------------------------- CordovaLib/Classes/CDVViewController.m | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/23b7600d/CordovaLib/Classes/CDVViewController.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m index ecdb65f..6add9af 100644 --- a/CordovaLib/Classes/CDVViewController.m +++ b/CordovaLib/Classes/CDVViewController.m @@ -69,6 +69,10 @@ name:UIApplicationDidEnterBackgroundNotification object:nil]; } + // read from UISupportedInterfaceOrientations (or UISupportedInterfaceOrientations~iPad, if its iPad) from -Info.plist + self.supportedOrientations = [self parseInterfaceOrientations: + [[[NSBundle mainBundle] infoDictionary] objectForKey:@"UISupportedInterfaceOrientations"]]; + self.commandDelegate = self; self.wwwFolderName = @"www"; self.startPage = @"index.html"; @@ -142,10 +146,6 @@ self.pluginObjects = [[NSMutableDictionary alloc] initWithCapacity:4]; - // read from UISupportedInterfaceOrientations (or UISupportedInterfaceOrientations~iPad, if its iPad) from -Info.plist - self.supportedOrientations = [self parseInterfaceOrientations: - [[[NSBundle mainBundle] infoDictionary] objectForKey:@"UISupportedInterfaceOrientations"]]; - // read from Cordova.plist in the app bundle NSString* appPlistName = @"Cordova"; NSDictionary* cordovaPlist = [[self class] getBundlePlist:appPlistName];