mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2026-04-23 00:00:14 +08:00
Added compiler directive for older xcode version
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user