@@ -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