-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MessageBar doesn't appear if app has no status bar. #35
Comments
A whole slew of issues arise when a status bar is hidden and there are orientation changes. We rely heavily on status bar orientation notifications, etc. Will have to rethink this one... |
Hey @DanielKrofchick, any idea on how we can go about fixing this? Only thing I can think of is hardcoding the status bar sizes when isStatusBarHidden == YES for -(CGRect)statusBarFrame. |
Yeah, that's what I worry about too.
|
Hi @terryworona. It seems it's best then not to trigger off of the statusBar. Fortunately there's a UIDevice orientation notification. I've put together a fix. I'll send over a pull request. |
From https://github.com/terryworona/TWMessageBarManager/blob/master/Classes/TWMessageBarManager.m#L587-L590
If app has no status bar,
-statusBarFrame
will returnCGRectZero
, making-width
returns 0, which makes message bar not appear at all.Suggested fix...
The text was updated successfully, but these errors were encountered: