mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-06-08 11:32:36 +00:00
check system version with NSFoundationVersionNumber
This commit is contained in:
parent
ce0bf30189
commit
53a0fe7e65
|
@ -171,7 +171,7 @@ static NSObject<Emulator> *sharedEmulator = nil;
|
||||||
UIViewController *viewController = [rootViewController.storyboard instantiateViewControllerWithIdentifier:name];
|
UIViewController *viewController = [rootViewController.storyboard instantiateViewControllerWithIdentifier:name];
|
||||||
viewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
|
viewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
|
||||||
viewController.modalPresentationStyle = UIModalPresentationFormSheet;
|
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];
|
modalPanePresentationDirection = [(UISwipeGestureRecognizer*)sender direction];
|
||||||
viewController.transitioningDelegate = self;
|
viewController.transitioningDelegate = self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user