I have a modal view controller whose navigation controller's bar style is "UIStatusBarStyleBlack"
, so its status bar text color is white.
However, if I present a UINavigationController
modally from here and I want it to be have a bar style of "UIStatusBarStyleDefault"
, I can't control the status bar text color.
I've tried everything suggested on SO (subclass, extensions, etc), but none of the solutions take this scenario into account (modal on a modal).
EDIT: This seems to only be the issue whenever it is presented from a non-fullscreen modal. So, if the first modal was fullscreen, everything works. But if it was a form sheet or popover on iPad, then the modal presented from there won't update the status bar color.