第一步
Info.plist中加入View controller-based status bar appearance 值设置为NO
第二步在AppDelegate 中加入以下代码
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
[application setStatusBarStyle:UIStatusBarStyleLightContent];
NSLog(@" Iam ios7");
}
else {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
NSLog(@" Iam ios6");
}