terryworona / TWMessageBarManager

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

StatusBar doesn't get hidden again after showing #43

Closed Leandros closed 10 years ago

Leandros commented 10 years ago

I hide the statusbar through prefersStatusBarHidden, but after showing the MessageBar, the StatusBar is still visible. Calling setNeedsStatusBarAppearanceUpdate doesn't change anything.

I've investigated a bit, and the TWMessageWindow doesn't get hidden after it has been showed for the first time. It adds two completely unnecessary and translucent views to the application.

terryworona commented 10 years ago

Hey @Leandros, I pushed a change last night that nil's out the TWMessageWindow after a message is dismissed.

This removes the need for a preferredStatusBarStyle and should help alleviate your prefersStatusBarHidden issues.

Please update to v1.5.2 and confirm it fixes your issue.

Leandros commented 10 years ago

Amazing! Fixed the issues. Sorry for any caused inconvenience!