ios启动界面中隐藏状态栏
ios启动界面中隐藏状态栏
1. 在项目info.plist 加上 Status bar is initially hidden YES,然后在AppDelegate.m里、
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions方法里面写
[[UIApplication sharedApplication]setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
2.如果要全部隐藏
则在 info.plist
Status bar is initially hidden YES,然后在AppDelegate.m里、
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions方法里面写
[[UIApplication sharedApplication]setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];