romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

black status bar when open side menu

AhmedOsman00 opened this issue · comments

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

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

if only somebody resolved that...

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;
}