From 53a0fe7e65cf38188045c059a9b9ddca36dddd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20A=2E=20A=CC=81lvarez?= Date: Thu, 2 Jun 2016 23:37:08 +0200 Subject: [PATCH] check system version with NSFoundationVersionNumber --- Mini vMac/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mini vMac/AppDelegate.m b/Mini vMac/AppDelegate.m index e216af2..97deb1f 100644 --- a/Mini vMac/AppDelegate.m +++ b/Mini vMac/AppDelegate.m @@ -171,7 +171,7 @@ static NSObject *sharedEmulator = nil; UIViewController *viewController = [rootViewController.storyboard instantiateViewControllerWithIdentifier:name]; viewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical; viewController.modalPresentationStyle = UIModalPresentationFormSheet; - if ([sender isKindOfClass:[UISwipeGestureRecognizer class]] && [UIDevice currentDevice].systemVersion.integerValue >= 8) { + if ([sender isKindOfClass:[UISwipeGestureRecognizer class]] && NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_8_0) { modalPanePresentationDirection = [(UISwipeGestureRecognizer*)sender direction]; viewController.transitioningDelegate = self; }