diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index d06c1bcd..5c0e1645 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -10,6 +10,7 @@ #import #import #import +#import #import "IGListSectionControllerInternal.h" #import "IGListDebugger.h" @@ -26,7 +27,7 @@ - (void)dealloc { // on iOS 9 setting the dataSource has side effects that can invalidate the layout and seg fault - if ([[[UIDevice currentDevice] systemVersion] floatValue] < 9.0) { + if (!IGSystemVersionIsIOS9OrNewer()) { // properties are assign for #import #import +#import #import @@ -23,7 +24,7 @@ static void * kIGListAdapterKey = &kIGListAdapterKey; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ // interactive reordering does not exist prior to iOS 9 - if ([[[UIDevice currentDevice] systemVersion] floatValue] < 9.0) { + if (!IGSystemVersionIsIOS9OrNewer()) { return; }