update comments

This commit is contained in:
panxi 2019-04-17 15:08:18 -04:00
parent 935b32ed6d
commit 786d517517
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
- (void)expandStatusBarView;
- (void)collapseStatusBarView;
//reset status bar background color based on style
/// reset status bar background color, when backgroundColor is nil corresponding background color will be set based on style
- (void)resetDefaultBackgroundColor:(nullable UIColor *)backgroundColor basedOnStatusBarStyle:(UIStatusBarStyle)style;
// Can be subclassed for custom views.

View File

@ -250,7 +250,7 @@ NSString * const MFAccTopAlertClosed = @"Top alert notification is closed.";
defaultStatusBarBackgroundColor = style == UIStatusBarStyleDefault ? [UIColor whiteColor] : [UIColor blackColor];
}
if (!self.topAlertObject) {
//color doens't match the current default value
//color doesn't match the current default value
if (!CGColorEqualToColor(defaultStatusBarBackgroundColor.CGColor, self.statusBarView.backgroundColor.CGColor)) {
self.statusBarView.backgroundColor = defaultStatusBarBackgroundColor;
}