i set background color of status bar using code below
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7)
{
UIView *view=[[UIView alloc] initWithFrame:CGRectMake(0, 0,320, 20)];
view.backgroundColor = [UIColor colorWithRed:(31.0/255.0) green:(109.0/255.0) blue:(128.0/255.0) alpha:1];
[self.window.rootViewController.view addSubview:view];
}
Also I set background color of my View in storyboard to exactly same color (R:31,G:109,B:128). But in result colors aren't same. Background color in status bar is brighter than in View.
In Info.plist I have Status bar style
set to UIStatusBarStyleLightContent
and View controller-based status bar appearance
set to NO
.
Is that because status bar is translucent?
How can I change that?
Thanks for any advice.