mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-02-24 09:02:51 +08:00
Added compiler directive for older xcode version
This commit is contained in:
parent
c122649de2
commit
0ba523375a
@ -2,7 +2,7 @@
|
|||||||
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
id="net.yoik.cordova.plugins.screenorientation"
|
id="net.yoik.cordova.plugins.screenorientation"
|
||||||
version="1.3.0">
|
version="1.3.1">
|
||||||
|
|
||||||
<name>Screen Orientation</name>
|
<name>Screen Orientation</name>
|
||||||
<description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>
|
<description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>
|
||||||
|
@ -71,8 +71,11 @@ SOFTWARE.
|
|||||||
vc.view.backgroundColor = [UIColor clearColor];
|
vc.view.backgroundColor = [UIColor clearColor];
|
||||||
// vc.view.alpha = 0.0;
|
// vc.view.alpha = 0.0;
|
||||||
vc.view.opaque = YES;
|
vc.view.opaque = YES;
|
||||||
|
|
||||||
|
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
|
||||||
// This stops us getting the black application background flash, iOS8
|
// This stops us getting the black application background flash, iOS8
|
||||||
vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
|
vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
|
||||||
|
#endif
|
||||||
|
|
||||||
[self.viewController presentViewController:vc animated:NO completion:nil];
|
[self.viewController presentViewController:vc animated:NO completion:nil];
|
||||||
[self.viewController dismissViewControllerAnimated:NO completion:nil];
|
[self.viewController dismissViewControllerAnimated:NO completion:nil];
|
||||||
|
Loading…
Reference in New Issue
Block a user