You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2015/10/30 11:50:26 UTC

[2/7] ios commit: CB-9610 Fix warning in cordova-ios under Xcode 7

CB-9610 Fix warning in cordova-ios under Xcode 7


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

Branch: refs/heads/3.9.x
Commit: 6f771f96afa1bcfa3878550b0a5f94dd95a43866
Parents: 352cc10
Author: sgrebnov <v-...@microsoft.com>
Authored: Mon Oct 26 14:31:32 2015 +0300
Committer: sgrebnov <v-...@microsoft.com>
Committed: Mon Oct 26 14:37:54 2015 +0300

----------------------------------------------------------------------
 bin/templates/project/__PROJECT_NAME__/Classes/AppDelegate.m | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/6f771f96/bin/templates/project/__PROJECT_NAME__/Classes/AppDelegate.m
----------------------------------------------------------------------
diff --git a/bin/templates/project/__PROJECT_NAME__/Classes/AppDelegate.m b/bin/templates/project/__PROJECT_NAME__/Classes/AppDelegate.m
index 3cb3198..77bef36 100644
--- a/bin/templates/project/__PROJECT_NAME__/Classes/AppDelegate.m
+++ b/bin/templates/project/__PROJECT_NAME__/Classes/AppDelegate.m
@@ -135,7 +135,11 @@
     }
 #endif
 
+#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
 - (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
+#else
+- (UIInterfaceOrientationMask)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
+#endif
 {
     // iPhone doesn't support upside down by default, while the iPad does.  Override to allow all orientations always, and let the root view controller decide what's allowed (the supported orientations mask gets intersected).
     NSUInteger supportedInterfaceOrientations = (1 << UIInterfaceOrientationPortrait) | (1 << UIInterfaceOrientationLandscapeLeft) | (1 << UIInterfaceOrientationLandscapeRight) | (1 << UIInterfaceOrientationPortraitUpsideDown);


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