Disappearing status bar at the top after MPMoviePlayerController is closed

后端 未结 3 758
生来不讨喜
生来不讨喜 2021-02-06 03:23

Having an interesting little problem with my iPhone app. I have a view with a table and each cell, when clicked, plays a video fullscreen then when you press done, the video sto

3条回答
  •  梦如初夏
    2021-02-06 04:01

    Maybe the animation from when the video view disappears is causing a timing issue with the status bar animation.

    try delaying the statusBarHidden = NO call by a few seconds.

    NSInteger delay = 3;
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delay * NSEC_PER_SEC), dispatch_get_current_queue(), ^{
    [UIApplication sharedApplication].statusBarHidden = NO;
    });
    

提交回复
热议问题