mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-02-24 00:52:50 +08:00
Merge pull request #32 from gbenvenuti/iosCompile
Added compiler directive for older xcode version
This commit is contained in:
commit
06b93e64c7
@ -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>
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user