I'm having this odd issue, where my status bar gets all black, only when I'm using a tab bar controller. Is there a way to fix this? I obviously want it the same color as the navigation bar.
Here's a screenshot of the navigation and tab bar controller in my storyboard.
NO
Then put this line of code in your appDelegate.swift
in didFinishLaunchingWithOptions
UIApplication.shared.statusBarStyle = .lightContent
This problem seems to be the navigation bar not covering the background of the status bar. You should embed your view controller in navigation controller instead of adding navigation bar directly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With