From 0ba523375a4bfdf9af4afe18ae7576dbc594a044 Mon Sep 17 00:00:00 2001 From: Grant Benvenuti Date: Tue, 18 Nov 2014 08:29:04 +1000 Subject: [PATCH] Added compiler directive for older xcode version --- plugin.xml | 2 +- src/ios/YoikScreenOrientation.m | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin.xml b/plugin.xml index f4b7472..ba78308 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="1.3.1"> 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 17ca3db..e06839b 100644 --- a/src/ios/YoikScreenOrientation.m +++ b/src/ios/YoikScreenOrientation.m @@ -71,8 +71,11 @@ SOFTWARE. vc.view.backgroundColor = [UIColor clearColor]; // vc.view.alpha = 0.0; vc.view.opaque = YES; + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000 // This stops us getting the black application background flash, iOS8 vc.modalPresentationStyle = UIModalPresentationOverFullScreen; +#endif [self.viewController presentViewController:vc animated:NO completion:nil]; [self.viewController dismissViewControllerAnimated:NO completion:nil];