-
Notifications
You must be signed in to change notification settings - Fork 145
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
Status bar is bright when contentViewController is presented #39
Comments
I know one of the solutions is to create a new |
Lol... Of course not, you need to just override preferredStatusBarStyle in your contentViewController and make sure that call setNeedsStatusBarAppearanceUpdate, and just set modalPresentationCapturesStatusBarAppearance = YES; to MZFormSheetPresentationController, and read this: http://stackoverflow.com/questions/23615647/uiviewcontrollers-prefersstatusbarhidden-not-working |
I have tried your suggestion and realized you have misunderstood my question. I didn't mean changing |
On Apple Guidlines status bar is always on the top, MZFormSheetPresentationController is using presentation controllers which is recommended by apple and not using UIWindow presentation as MZFormSheetController and it won't in future. |
In my demo is the first one, and as i said i am using native way for presenting view controllers, apple is doing in this way so do i. |
Ok..., thank you anyway. You must be mad at me right now. So sorry. |
I don't think he's mad. I think he's trying to tell you that what you want can't be done using automatic behavior with MZFormSheetPresentationController. It could be done in the older version using MZFormSheetController, which used UIWindow presentation. Perhaps you can accomplish what you want by tinting the status bar in the completion blocks for showing and dismissing your modal view? |
Yep, i am not mad, just wanted to tell you that this is not how Apple designed their presenters, and even popover controller have status bar always on top. Good catch @eliburke , you can always make screenshot of status bar window, and then add it below dimming view in form sheet presentation controller, and hide status bar. You will get this effect. |
The status bar style is
.LightContent
, I hope it will be dim when whencontentViewController
is presented. However, it is bright which seems like highlighted with a dim background.Any advice?
The text was updated successfully, but these errors were encountered: