RESideMenu icon indicating copy to clipboard operation
RESideMenu copied to clipboard

[Issue] Status bar style update.

Open markst opened this issue 10 years ago • 5 comments

When changing the content view controller, the status bar style is not updated.

markst avatar May 07 '14 02:05 markst

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.

markst avatar May 07 '14 02:05 markst

yep, I have the same

bizibizi avatar May 16 '14 03:05 bizibizi

see #128

zvving avatar May 20 '14 14:05 zvving

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.

markst avatar May 30 '14 04:05 markst

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.

danielborges93 avatar May 28 '16 05:05 danielborges93