I present a modal UINavigationController with interactive firing. The parent view controller has a dark status bar, and the modal view controller has a status indicator. I am using the status bar display configuration based on the iOS 7 controller.
Everything works fine as long as I submit and dismiss the view controller non-interactively. However, when I start the interactive transition with the cancellation and cancels it, the color of the status bar remains dark.
I created a sample project . Press the "Menu" button, then start the interactive transition by panning from the right edge of the screen.
Things I tried:
- calling
-setNeedsStatusBarAppearanceUpdate on any of the navigation and view controllers that were involved after the transition was canceled. - Change navigationBar.barStyle to
UIBarStyleDefault and back to UIBarStyleBlack
I also confirmed that the statusBarStyle of my modal navigation controller is configured correctly:
(lldb) p (UIStatusBarStyle) [[[[[UIApplication sharedApplication] keyWindow] rootViewController] presentedViewController] preferredStatusBarStyle] (UIStatusBarStyle) $8 = UIStatusBarStyleLightContent
However, the status bar is black.
Any further idea what I could try?
source share