diff --git a/CordovaLib/Classes/Public/CDVAppDelegate.m b/CordovaLib/Classes/Public/CDVAppDelegate.m index f13753c4a..9188be79e 100644 --- a/CordovaLib/Classes/Public/CDVAppDelegate.m +++ b/CordovaLib/Classes/Public/CDVAppDelegate.m @@ -86,11 +86,7 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction return YES; } -#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 -- (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window -#else //CB-12098. Defaults to UIInterfaceOrientationMask for iOS 9+ - (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); diff --git a/CordovaLib/Classes/Public/CDVScreenOrientationDelegate.h b/CordovaLib/Classes/Public/CDVScreenOrientationDelegate.h index 519dd490c..49c3c2707 100644 --- a/CordovaLib/Classes/Public/CDVScreenOrientationDelegate.h +++ b/CordovaLib/Classes/Public/CDVScreenOrientationDelegate.h @@ -21,13 +21,8 @@ @protocol CDVScreenOrientationDelegate -#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 -- (NSUInteger)supportedInterfaceOrientations; -#else - (UIInterfaceOrientationMask)supportedInterfaceOrientations; -#endif -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation; - (BOOL)shouldAutorotate; @end diff --git a/CordovaLib/Classes/Public/CDVViewController.m b/CordovaLib/Classes/Public/CDVViewController.m index 1b1f274a3..c0c12f887 100644 --- a/CordovaLib/Classes/Public/CDVViewController.m +++ b/CordovaLib/Classes/Public/CDVViewController.m @@ -450,12 +450,7 @@ - (BOOL)shouldAutorotate return YES; } -// CB-12098 -#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 -- (NSUInteger)supportedInterfaceOrientations -#else - (UIInterfaceOrientationMask)supportedInterfaceOrientations -#endif { NSUInteger ret = 0; diff --git a/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m b/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m index cd0196cbc..b910c6e42 100644 --- a/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m +++ b/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m @@ -77,30 +77,6 @@ - (void)viewDidLoad // Do any additional setup after loading the view from its nib. } -/* Comment out the block below to over-ride */ - -/* -// CB-12098 -#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 -- (NSUInteger)supportedInterfaceOrientations -#else -- (UIInterfaceOrientationMask)supportedInterfaceOrientations -#endif -{ - return [super supportedInterfaceOrientations]; -} - -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation -{ - return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation]; -} - -- (BOOL)shouldAutorotate -{ - return [super shouldAutorotate]; -} -*/ - @end @implementation MainCommandDelegate diff --git a/tests/CordovaLibTests/CordovaLibApp/ViewController.m b/tests/CordovaLibTests/CordovaLibApp/ViewController.m index d79264f89..9fb1e7320 100644 --- a/tests/CordovaLibTests/CordovaLibApp/ViewController.m +++ b/tests/CordovaLibTests/CordovaLibApp/ViewController.m @@ -39,9 +39,4 @@ - (void)viewDidLoad // Do any additional setup after loading the view, typically from a nib. } -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation -{ - return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation]; -} - @end diff --git a/tests/spec/unit/fixtures/ios-config-xml/SampleApp/Classes/MainViewController.m b/tests/spec/unit/fixtures/ios-config-xml/SampleApp/Classes/MainViewController.m index c59c09ed3..db2925305 100644 --- a/tests/spec/unit/fixtures/ios-config-xml/SampleApp/Classes/MainViewController.m +++ b/tests/spec/unit/fixtures/ios-config-xml/SampleApp/Classes/MainViewController.m @@ -77,30 +77,6 @@ - (void)viewDidLoad // Do any additional setup after loading the view from its nib. } -/* Comment out the block below to over-ride */ - -/* -// CB-12098 -#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 -- (NSUInteger)supportedInterfaceOrientations -#else -- (UIInterfaceOrientationMask)supportedInterfaceOrientations -#endif -{ - return [super supportedInterfaceOrientations]; -} - -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation -{ - return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation]; -} - -- (BOOL)shouldAutorotate -{ - return [super shouldAutorotate]; -} -*/ - @end @implementation MainCommandDelegate