if ([[[UIDevice currentDevice] systemVersion] floatValue]>=7) { [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; self.window.frame=CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height-20); }
info.plist加入
View controller-based status bar appearance 设为NO