summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-03-10 15:41:18 -0500
committerJoel Fischer <joeljfischer@gmail.com>2016-03-10 15:41:18 -0500
commit752ce72fa86a42ad6a3e531adfc309672f95824d (patch)
tree4beff5c7c44adb8e939186e30054347abe7938f9
parent878b405b3899df355a0c7929648955073e5c7288 (diff)
downloadsdl_ios-752ce72fa86a42ad6a3e531adfc309672f95824d.tar.gz
Fix StreamingMediaManager version check
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m
index a3b784f9b..1ef3a526f 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m
@@ -63,7 +63,8 @@ NS_ASSUME_NONNULL_BEGIN
#pragma mark - Streaming media lifecycle
- (void)startVideoSessionWithStartBlock:(SDLStreamingStartBlock)startBlock {
- if ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.0) {
+ // If system version is less than 8.0
+ if ([[[UIDevice currentDevice] systemVersion] compare:@"8.0" options:NSNumericSearch] == NSOrderedAscending) {
NSAssert(NO, @"SDL Video Sessions can only be run on iOS 8+ devices");
startBlock(NO, [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLSTreamingVideoErrorInvalidOperatingSystemVersion userInfo:nil]);