ios - Adding UIWindow removes status bar -
i'm adding subvview on top of status bar. first i'm creating new window:
let currentwindow = uiapplication.sharedapplication().keywindow currentwindow?.windowlevel = uiwindowlevelstatusbar
next add subview:
currentwindow?.addsubview(self.profileview!)
the problem i'm having when remove subview, status bar not show more throughout application. supposed remove currentwindow
well?
when remove subview, you'll need set windowlevel
default value status bar visible again.
let currentwindow = uiapplication.sharedapplication().keywindow currentwindow!.windowlevel = uiwindowlevelnormal
Comments
Post a Comment