Skip to content
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

black status bar when open side menu #315

Open
AhmedOsman00 opened this issue Oct 8, 2018 · 3 comments
Open

black status bar when open side menu #315

AhmedOsman00 opened this issue Oct 8, 2018 · 3 comments

Comments

@AhmedOsman00
Copy link

when I open side menu a black view appears instead of status bar only on iOS 10

@Riton2013
Copy link

Me,too. How to fix it if anyone knows that ?

@chwastek
Copy link

if only somebody resolved that...

@chwastek
Copy link

ok, so for the legacy knowledge what I have done to solve it:

  1. I have this view controller
@interface RootVC () <RESideMenuDelegate>
@property (nonatomic, strong) UIViewController *contentVC;
@end
  1. I created this little handy bit for crafting a side menu view controller
- (RESideMenu *)configuredSideMenuVCWithMenu:(UIViewController *)menuVC {
    RESideMenu *sideMenuViewController = [[RESideMenu alloc] initWithContentViewController:self.contentVC leftMenuViewController:nil rightMenuViewController:menuVC];
    // Here I change all sorts of parameters like shadows, colors, etc.
    return sideMenuViewController;
}
  1. and finally I changed the background color to the desired value after hiding the menu (you can change it in other delegate methods if you play with shadows like I did inside my configuredSideMenuVCWithMenu)
- (void)sideMenu:(RESideMenu *)sideMenu didHideMenuViewController:(UIViewController *)menuViewController {
    self.contentVC.view.backgroundColor = UIColor.whiteColor;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants