ios7 - UIWindow shows the status bar - can't make it go away -
i have ios 7 app.
uses key view controller-based status bar appearance
set yes each view controller controls appearance of status bar.
of course, in case ios ignores calls uiapplication
's setstatusbarhidden:
, it's variants.
problems starts when show uiwindow
on uiviewcontroller
sets status bar hidden.
uiwindow
becomes visible, status bar appears, , can't hide it.
assuming status bar hidden using -(bool)prefersstatusbarhidden
, run following piece of code, status bar re-appears, , can't turn off.
suggestions, anyone?
static uiwindow* w = nil; // testing code, makes sure w not autodestruct... if (!w){ cgrect r = [[uiscreen mainscreen] bounds]; w = [[uiwindow alloc] initwithframe:r]; w.backgroundcolor = [uicolor greencolor]; } [w makekeyandvisible]; // colors screen green, shows status bar
Comments
Post a Comment