pkluz / PKRevealController

PKRevealController is a delightful view controller container for iOS, enabling you to present multiple controllers on top of one another.
Other
3.85k stars 659 forks source link

`prefersStatusBarHidden` is not called in the FrontViewController #246

Open enix223 opened 7 years ago

enix223 commented 7 years ago

PKRevealController is an awesome lib, and it makes my life much easier. Thank you...

But I have got an issue when defining the view-base status bar status in the front view controller.

I have defined the prefersStatusBarHidden method as below:

- (BOOL)prefersStatusBarHidden {
    return self.navigationController.isNavigationBarHidden;
}

But this method is never called, even I have set the View controller-based status bar appearance to YES in the info.plist.

I am sure this method will be called if I am not using the PKRevealController.

Any idea?