terryworona / TWMessageBarManager

An iOS manager for presenting system-wide notifications via a dropdown message bar.
MIT License
1.77k stars 191 forks source link

add property to hide the statusbar #46

Closed Leandros closed 10 years ago

terryworona commented 10 years ago

Hey @Leandros, I modified your implementation to instead pass through a statusBarHidden bit via two new functions (commit: 4ca542a4d28bcddf68c2888b9ff21c1c771782c5):

- (void)showMessageWithTitle:(NSString *)title description:(NSString *)description type:(TWMessageBarMessageType)type statusBarHidden:(BOOL)statusBarHidden callback:(void (^)())callback;

- (void)showMessageWithTitle:(NSString *)title description:(NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarHidden:(BOOL)statusBarHidden callback:(void (^)())callback;

This allows you to control the visibility of a status bar on a per-message basis and avoids maintaining state behavior across multiple presentations.

Hope this helps.

Leandros commented 10 years ago

Amazing! Thanks a lot!