Skip to content

Commit

Permalink
Change status bar style depending on RMActionControllerStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
CooperRS committed Jun 19, 2015
1 parent 9eb3b02 commit 4ad19d5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions RMActionController/RMActionController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 4ad19d5

Please sign in to comment.