Hide status bar on launch image

后端 未结 5 1990
孤城傲影
孤城傲影 2020-12-08 15:15

Is there a way to hide the status bar when the app\'s launch image is displayed and then bring it back? My app has a black status bar and the one

5条回答
  •  情话喂你
    2020-12-08 15:45

    You can initially add this key in the info.plist file: status bar is initially hidden=YES

    Then in the app delegate, add this line in the application:didFinishLaunchingWithOptions: method:

      [[UIApplication sharedApplication] setStatusBarHidden:NO];
    

提交回复
热议问题