-
Notifications
You must be signed in to change notification settings - Fork 146
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
iOS 10 - prefersStatusBarHidden not called in presented ViewController #112
Comments
Have you tried "To specify that a child view controller should control preferred status bar hidden/unhidden state, implement the childViewControllerForStatusBarHidden method." ? Are you setting prefersStatusBarHidden in good VC, in iOS10 something could changed |
@m1entus sorry.. where exactly should I be putting the ``childViewControllerForStatusBarHidden` method ? In the ViewController being presented or in the ViewController that is instantiating the MZform and then presenting it? In my case.. the ViewController that is presenting.. is hiding the statusbar properly by calling |
Any updates? Do I need to subclass MZFormSheetPresentationViewController? |
@maross I tried everything.. nothing makes the statusbar to disappear. |
If you guys prepare short example where can i reproduce it, i will help you guys! |
@omarojo your code is ok. but MZFormSheetPresentationController has bug. see https://github.com/m1entus/MZFormSheetPresentationController/pull/143/files |
For some reason this was working well in iOS 9. but in iOS 10.
The statusBar is not getting hidden after being presented. I added
formSheetController.modalPresentationCapturesStatusBarAppearance = YES;
which I didnt have before. But still not working.
Im calling
[self setNeedsStatusBarAppearanceUpdate];
in viewDidLoad.
The text was updated successfully, but these errors were encountered: