You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2015/09/08 20:17:29 UTC

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

Repository: cordova-ios
Updated Branches:
  refs/heads/master 694a1172c -> 0f571e354


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/0f571e35
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/0f571e35
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/0f571e35

Branch: refs/heads/master
Commit: 0f571e354f4f2e8dc52dbf1723f0340cecd9bab9
Parents: 694a117
Author: Simon MacDonald <si...@gmail.com>
Authored: Tue Sep 8 14:08:01 2015 -0400
Committer: Simon MacDonald <si...@gmail.com>
Committed: Tue Sep 8 14:08:01 2015 -0400

----------------------------------------------------------------------
 CordovaLib/Classes/Public/CDVAppDelegate.m | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0f571e35/CordovaLib/Classes/Public/CDVAppDelegate.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Public/CDVAppDelegate.m b/CordovaLib/Classes/Public/CDVAppDelegate.m
index 52f5837..13c2e7b 100644
--- a/CordovaLib/Classes/Public/CDVAppDelegate.m
+++ b/CordovaLib/Classes/Public/CDVAppDelegate.m
@@ -85,7 +85,11 @@
     return YES;
 }
 
+#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