From 00dfa81f355331f9698617053f39d290eb7b03d2 Mon Sep 17 00:00:00 2001 From: Adam Thomas Date: Tue, 10 May 2016 17:06:22 +0100 Subject: [PATCH] Bail out if less than ios8 --- src/ios/CDVFixSelectPopover.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ios/CDVFixSelectPopover.m b/src/ios/CDVFixSelectPopover.m index 1c8055b..3ef1803 100644 --- a/src/ios/CDVFixSelectPopover.m +++ b/src/ios/CDVFixSelectPopover.m @@ -13,7 +13,14 @@ @implementation UIViewController(UIViewController_FixSelectPopover) +(void)load { - + // Check for iOS 7 and below. Bail if we aren't iOS 8 or above. + NSArray *versionPieces = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."]; + + // Check the Major version number only + if ([[versionPieces objectAtIndex:0] intValue] < 8) { + return; + } + static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{