RESideMenu icon indicating copy to clipboard operation
RESideMenu copied to clipboard

black status bar when open side menu

Open AhmedOsman00 opened this issue 6 years ago • 3 comments

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

AhmedOsman00 avatar Oct 08 '18 10:10 AhmedOsman00

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

Riton2013 avatar Oct 28 '19 04:10 Riton2013

if only somebody resolved that...

chwastek avatar Nov 18 '21 22:11 chwastek

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

chwastek avatar Nov 18 '21 23:11 chwastek