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 fixes for iOS6 and 7 #22

Closed Amnell closed 10 years ago

Amnell commented 10 years ago

Messages are now displayed underneath the StatusBar in iOS7.

I've also added the method -updateMessageFrames to TWMessageBarManager. This should be used manually whenever the statusbar hidden status is changed. It will change the frame of any currently visible TWMessageView to match the statusbar appearance. As I've noted in the comment for the method this should ideally be called automatically, but without any swizzling we won't get any notifications of any statusbar appearance changes. Check the demo for an example of how to use this method.

I've also added a "Toggle StatusBar" button in the demo application to test this behavior. Toggle the statusbar while a message is displayed to test my added functionality.

Tested in iOS7 and iOS6

terryworona commented 10 years ago

Fixed in f4400e80583672ff0bf0a9400e506ed60f9ac8b3

Amnell commented 10 years ago

Great that you've fixed the issue with iOS7, but why not merge this pull request instead? I like the -updateMessageFrames as it gives the messages a transition if the status bar appearance changes.