check system version with NSFoundationVersionNumber

This commit is contained in:
Jesús A. Álvarez 2016-06-02 23:37:08 +02:00
parent ce0bf30189
commit 53a0fe7e65
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ static NSObject<Emulator> *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;
}