[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
我通过设置和以下代码在我的应用程序中隐藏了状态栏:
- (BOOL)prefersStatusBarHidden
{
return YES;
}
当我用[self presentViewController:mpMediaPlayerController animated:YES completion:^{}]
; 显示 MPMediaPickerController 模式时,状态栏将再次显示。
我该如何隐藏它?