twotoasters / TWTSideMenuViewController

Side Menus for iOS 7
MIT License
847 stars 148 forks source link

Use childViewControllerForStatusBarStyle/childViewControllerForStatusBarHidden #12

Closed danielrhammond closed 10 years ago

danielrhammond commented 10 years ago

I think this is what Apple seems to intend you to do when you're creating container view controllers rather than calling preferredStatusBarStyle directly on a child view controller.

It gives you a lot more flexibility allows you to either define the -preferredStatusBarStyle in the main/menu controllers and it will work as before or have them just return another childViewControllerForStatusBarStyle (ie. my main view controller is a navigation controller and I want to either return light or dark depending on the top view controller)

jnjosh commented 10 years ago

Isn't this already merged with https://github.com/twotoasters/TWTSideMenuViewController/pull/10 ?

danielrhammond commented 10 years ago

Yeah sorry I tried to keep them separate, but I didn't realize #10 was coming from master on my fork and merged this in there.