I am trying to make my status bar the same color as my navigation bar, and not the same color as my background. I haven't found any solutions that work with iOS 12 Objective-C and aren't going to get my app banned from the app store.
This is how I'm setting up the Nav Bar:
[navController setBarTintColor:[UIColor colorWithRed:0.26 green:0.53 blue:0.96 alpha:1.0]];
[navController setTranslucent:FALSE];
[navController setBarStyle:UIBarStyleBlack];
[navController setTintColor:[UIColor whiteColor]];
And I've tried View controller-based status bar appearance
as both YES
and NO
, neither making a difference.
EDIT: The current behavior: status bar is the same color as the view's background. I'm trying to have it the same color as the navigation bar background.
I changed the background to red to show what I'm talking about. In this case, I'd like to make the status bar (or anything above the nav bar) blue, the same color as the nav bar.