1、在info.plist中新增 View controller-based status bar appearance 項(xiàng)并且將Value設(shè)置成 NO 這樣狀態(tài)欄就變成白字了。
2、在AppDelegate.m中加入下面的代碼,判斷系統(tǒng)版本然后將window的frame下拉20pt。
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleLightContent];
}