Added compiler directive for older xcode version

This commit is contained in:
Grant Benvenuti
2014-11-18 08:29:04 +10:00
parent c122649de2
commit 0ba523375a
2 changed files with 4 additions and 1 deletions
+3
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];