1,在.plist文件中添加一个键值对:设置View controller-based status bar appearance的值为NO
2,在方法中
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
添加 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];