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

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -