diff --git a/README.md b/README.md index 5f7b745..f10652a 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,10 @@ Wraps the com.blackberry.app plugin functions, auto installed as a dependancy. #Changelog +##1.3.2 + +* [#33](https://github.com/yoik/cordova-yoik-screenorientation/issues/33) iOS8 Delay Block + ##1.3.0 * [#23](https://github.com/yoik/cordova-yoik-screenorientation/issues/23) iOS8 flicker diff --git a/plugin.xml b/plugin.xml index ba78308..07a9b5d 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="1.3.2"> Screen Orientation Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10. diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m index e06839b..4dd77c3 100644 --- a/src/ios/YoikScreenOrientation.m +++ b/src/ios/YoikScreenOrientation.m @@ -77,8 +77,12 @@ SOFTWARE. vc.modalPresentationStyle = UIModalPresentationOverFullScreen; #endif - [self.viewController presentViewController:vc animated:NO completion:nil]; - [self.viewController dismissViewControllerAnimated:NO completion:nil]; + [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]; + }); + }]; } @end