From 786d517517d478a780f3efb43e48c0e210f8d71a Mon Sep 17 00:00:00 2001 From: panxi Date: Wed, 17 Apr 2019 15:08:18 -0400 Subject: [PATCH] update comments --- MVMCoreUI/TopAlert/MVMCoreUITopAlertView.h | 2 +- MVMCoreUI/TopAlert/MVMCoreUITopAlertView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.h b/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.h index 04f8bc73..5f49eb13 100644 --- a/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.h +++ b/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.h @@ -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. diff --git a/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.m b/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.m index 0b1045a6..02fb2ac6 100644 --- a/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.m +++ b/MVMCoreUI/TopAlert/MVMCoreUITopAlertView.m @@ -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; }