Search code examples
iosswiftstatusbar

Why is the status bar not showing up on an iOS application?


I am having a problem getting the status bar to show up in my view on iOS. I have tried changing the plist file of "Status Bar is Initially Hidden" to NO but it still doesn't show up.This black bar is all I get and I am unsure why. enter image description here

I've tried both the answers below, resulting in an error. Is there something I am missing with delegation or something similar?


Solution

  • One other thing you can try is to click on the name of your project. Then click on the name of your project under Targets. Then under where it says Deployment Info take a look at where it says Status Bar Style and change it to Light. Do a Shift+Cmd+K to clean and then run.