You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by to...@apache.org on 2016/05/23 13:42:02 UTC
[04/50] cordova-plugin-screen-orientation git commit: Added compiler
directive for older xcode version
Added compiler directive for older xcode version
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/0ba52337
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/0ba52337
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/0ba52337
Branch: refs/heads/master
Commit: 0ba523375a4bfdf9af4afe18ae7576dbc594a044
Parents: c122649
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Tue Nov 18 08:29:04 2014 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Tue Nov 18 08:29:04 2014 +1000
----------------------------------------------------------------------
plugin.xml | 2 +-
src/ios/YoikScreenOrientation.m | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/0ba52337/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index f4b7472..ba78308 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="net.yoik.cordova.plugins.screenorientation"
- version="1.3.0">
+ version="1.3.1">
<name>Screen Orientation</name>
<description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/0ba52337/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
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];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org