Try this code :
In your info.plist
Set View controller-based status bar appearance to NO
Set Status bar style to UIStatusBarStyleLightContent
In AppDelegate
method :
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) // for ios7
{
UIView *yourview=[[UIView alloc] initWithFrame:CGRectMake(0, 0,320, 20)];
yourview.backgroundColor=[UIColor redColor];
[self.window.rootViewController.view addSubview:yourview];
}
I think this will helps you. :)