Closed Amnell closed 10 years ago
Fixed in f4400e80583672ff0bf0a9400e506ed60f9ac8b3
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.
Messages are now displayed underneath the StatusBar in iOS7.
I've also added the method
-updateMessageFrames
toTWMessageBarManager
. This should be used manually whenever the statusbar hidden status is changed. It will change the frame of any currently visibleTWMessageView
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