1.在info.plist中添加view controller -base status bar 设置为NO
如果是iOS7还要在AppDelegate的didFinishLaunchingWithOptions:(NSDictionary *)launchOptions中添加:
if(IOS7){//判断是否为iOS7
[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleLightContentanimated:NO];
}
2 设置在启动期间状态栏位白色
在info.plist中添加Status bar style,改变style值,选择Opaque black style或者:Transparent black style (alpha of 0.5)