In my iOS application I am using a UINavigationBar without a UINavigationController. How can I still set the color of the application statusbar to match the color of my UINavigationBar, which is a custom blue color? Tried but doesn't work:
- Setting the
UIViewControllerBasedStatusBarAppearance
property in the plist doesn't have any effect - Setting the
barTintColor
of my UINavigationBar does not affect the statusbar, presumably because it's not managed by a UINavigationViewController? - Setting
UINavigationBar.appearance().barTintColor
doesn't work either
Any suggestions?