[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
在plist里面添加 :View controller-based status bar ... NO 就ok了
- (void)setDefaultStyle
{
UIImage *navBg = [UIImage imageWithColor:[UIColor colorWithRed:(250)/255.0f green:(250)/255.0f blue:(250)/255.0f alpha:1]
frame:CGRectMake(0.0f, 0.0f, SCREENBOUND.size.width, kNavigationBarHeight-20)];
if (isOS7){
[[UINavigationBarappearance] setBackgroundImage:navBg forBarPosition:3 barMetrics:UIBarMetricsDefault];
[[UINavigationBarappearance] setTintColor:[UIColorcolorWithRed:(250)/255.0fgreen:(250)/255.0fblue:(250)/255.0falpha:1]];
[[UINavigationBarappearance] setBarTintColor:[UIColorcolorWithRed:(250)/255.0fgreen:(250)/255.0fblue:(250)/255.0falpha:1]];
}else{
[[UINavigationBarappearance] setBackgroundImage:navBg forBarMetrics:UIBarMetricsDefault];
}