diff --git a/RMActionController/RMActionController.m b/RMActionController/RMActionController.m index edb4b6e..3f0e63b 100644 --- a/RMActionController/RMActionController.m +++ b/RMActionController/RMActionController.m @@ -568,6 +568,18 @@ - (void)addSubview:(UIView *)subview toContainer:(UIView *)container { } } +#pragma mark - iOS Properties +- (UIStatusBarStyle)preferredStatusBarStyle { + switch (self.style) { + case RMActionControllerStyleWhite: + return UIStatusBarStyleLightContent; + case RMActionControllerStyleBlack: + return UIStatusBarStyleDefault; + default: + return UIStatusBarStyleLightContent; + } +} + #pragma mark - Custom Properties - (BOOL)disableBlurEffects { if(!NSClassFromString(@"UIBlurEffect") || !NSClassFromString(@"UIVibrancyEffect") || !NSClassFromString(@"UIVisualEffectView")) {