Skip to content

Commit 2546c7e

Browse files
authored
Merge pull request jdg#391 from DinosaurDad/master
Fixed a crash on iOS 8.x and earlier
2 parents 33eb2dd + c8c91f7 commit 2546c7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MBProgressHUD.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ - (void)updateViewsForColor:(UIColor *)color {
444444
UIView *indicator = self.indicator;
445445
if ([indicator isKindOfClass:[UIActivityIndicatorView class]]) {
446446
UIActivityIndicatorView *appearance = nil;
447-
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
447+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 90000
448448
appearance = [UIActivityIndicatorView appearanceWhenContainedIn:[MBProgressHUD class], nil];
449449
#else
450450
// For iOS9+
@@ -456,7 +456,7 @@ - (void)updateViewsForColor:(UIColor *)color {
456456
}
457457
} else if ([indicator isKindOfClass:[MBRoundProgressView class]]) {
458458
MBRoundProgressView *appearance = nil;
459-
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
459+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 90000
460460
appearance = [MBRoundProgressView appearanceWhenContainedIn:[MBProgressHUD class], nil];
461461
#else
462462
appearance = [MBRoundProgressView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]];
@@ -469,7 +469,7 @@ - (void)updateViewsForColor:(UIColor *)color {
469469
}
470470
} else if ([indicator isKindOfClass:[MBBarProgressView class]]) {
471471
MBBarProgressView *appearance = nil;
472-
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
472+
#if __IPHONE_OS_VERSION_MIN_REQUIRED < 90000
473473
appearance = [MBBarProgressView appearanceWhenContainedIn:[MBProgressHUD class], nil];
474474
#else
475475
appearance = [MBBarProgressView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]];

0 commit comments

Comments
 (0)