status bar shows up with a delay in IOS APP Swift -


i hide status bar in launch screen in swift application, xcode 8.

under target property, set "status bar hidden" value "yes" hide status bar in launch screen.

then make status bar visible in app, programmatically set "isstatusbarhidden" value "no" in appdelegate file:

func application(_ application: uiapplication, didfinishlaunchingwithoptions launchoptions: [uiapplicationlaunchoptionskey: any]?) -> bool {         // override point customization after application launch.           uiapplication.shared.statusbarstyle = .lightcontent         uiapplication.shared.statusbarview?.backgroundcolor = uicolor(red:0.77, green:0.07, blue:0.00, alpha:1.0)          uiapplication.shared.isstatusbarhidden = false          return true     } 

this code makes status bar show in app, status bar shows delay. order things happen:

1- launch screen shows no status bar (as intended)

2- first view shows menu , white empty status bar above menu.

3- status bar red color, battery , order icons shows up.

i want status bar shows before first view don't know how it.

*ps, changed order of lines in didfinishlaunchingwithoptions function no luck.

*pss, i'm new ios development.

here proof of using! enter image description here

there no statusbarview property:

enter image description here

the fact code compiles on machine , not on mine extremely weird. claim using xcode 8 might false, or there may code involved here have not told (such extension on uiapplication).

if writing extremely outdated version of ios, or using extremely outdated version of xcode, should not expect here.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -