diff --git a/SlideMenu/Source/SlideNavigationController.m b/SlideMenu/Source/SlideNavigationController.m index 9a09650..84aa60b 100644 --- a/SlideMenu/Source/SlideNavigationController.m +++ b/SlideMenu/Source/SlideNavigationController.m @@ -112,6 +112,19 @@ - (id)initWithNavigationBarClass:(Class)navigationBarClass toolbarClass:(Class)t return self; } + +- (UIStatusBarStyle)preferredStatusBarStyle +{ + UIStatusBarStyle ret; + if (self.viewControllers.count>0) { + ret = [self.viewControllers.lastObject preferredStatusBarStyle]; + } + else { + ret = [super preferredStatusBarStyle]; + } + return ret; +} + - (void)setup { if (singletonInstance)