From 31d49c89361fb2508dc7d816be8fb2235705c680 Mon Sep 17 00:00:00 2001 From: Grant Benvenuti Date: Thu, 11 Sep 2014 06:27:33 +1000 Subject: [PATCH 1/2] Updated iOS8 for #19 removed delay block --- src/ios/YoikScreenOrientation.m | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m index e1f077b..3cf8eb1 100644 --- a/src/ios/YoikScreenOrientation.m +++ b/src/ios/YoikScreenOrientation.m @@ -31,16 +31,8 @@ SOFTWARE. // SEE https://github.com/Adlotto/cordova-plugin-recheck-screen-orientation // HACK: Force rotate by changing the view hierarchy. Present modal view then dismiss it immediately. - - UIViewController *vc = [[UIViewController alloc] init]; - vc.view.alpha = 0; - - [self.viewController presentViewController:vc animated:NO completion:^{ - // added to support iOS8 beta 5, @see issue #19 - dispatch_after(0, dispatch_get_main_queue(), ^{ - [self.viewController dismissViewControllerAnimated:NO completion:nil]; - }); - }]; + [self.viewController presentViewController:[UIViewController new] animated:NO completion:nil]; + [self.viewController dismissViewControllerAnimated:NO completion:nil]; // grab the device orientation so we can pass it back to the js side. NSString *orientation; From d98ea662658e349bb8282a3cb64d6bbca821d3c8 Mon Sep 17 00:00:00 2001 From: Grant Benvenuti Date: Thu, 11 Sep 2014 06:29:10 +1000 Subject: [PATCH 2/2] Version bump --- plugin.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.xml b/plugin.xml index 33a7849..f947ab8 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="1.2.1"> Screen Orientation Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.