I have a window(A) with rootviewcontroller and will make another window(B) with other rootviewcontroller. Window A is keyWindow, but I will overlay window B on window A. windowB is transparent.
When window B overlay on windowA, app's statusBarStyle
is driven by window B! Not window A!
I wanna ignore window B's rootviewcontroller's statusBarStyle
.
I wanna adjust statusbar style by window A.
I'm using prefersstatusbarstyle
to set statusBarstyle
.
Because my Info.plist
's View controller-based status bar appearance : YES.
(UIApplication setStatusBarStyle
is deprecated).
How can I do this?