Merge pull request #32 from gbenvenuti/iosCompile

Added compiler directive for older xcode version
This commit is contained in:
Grant Benvenuti 2014-11-18 21:06:29 +10:00
commit 06b93e64c7
2 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -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];