RESideMenu
RESideMenu copied to clipboard
[Issue] Status bar style update.
When changing the content view controller, the status bar style is not updated.
I can subclass RESideMenu
and perform setNeedsStatusBarAppearanceUpdate
when the content view controller changes. However if set with an animation, the reference to the contentViewContainer is not updated until the animation block is complete.
yep, I have the same
see #128
Cheers, this pull request fixes for me.
Usual approach is for didMoveToParentViewController:
to occur after animation is complete?
Also wonder if 'UINavigationController' category should be the developers responsibility to implement, rather than implicit.
I am getting the same problem. My contentViewController (ProfileViewController
) implements
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return .LightContent
}
And I am doing this to show the new contentViewController:
let profileViewController = ProfileViewController()
let navigationController = UINavigationController(rootViewController: profileViewController)
self.sideMenuViewController.setContentViewController(navigationController, animated: true)
self.sideMenuViewController.hideMenuViewController()
In my RESideMenu
instance I have:
sideMenuViewController.menuPreferredStatusBarStyle = .LightContent
But when the side menu dismisses, the status bar stays black.