加载启动图时隐藏状态栏 启动完毕再显示状态栏
这个需求是设计师提出来的,有木有很烦,看在她很漂亮的份上先做出来
1. 工程配置
Target -- General -- Deployment Info -- StatusBarHidden 勾选
2. 启动完毕代码设置statusBarHidden = NO
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
application.statusBarStyle = UIStatusBarStyleLightContent;
application.statusBarHidden = NO;
return YES;
}