IOS 6 Issue with MPMoviePlayerController

后端 未结 1 486
借酒劲吻你
借酒劲吻你 2021-01-19 18:28

Please check the below code:

(void) moviePlayerDidExitFullscreen:(NSNotification*)notification 
{

 MPMoviePlayerController *player = [notification object];
         


        
相关标签:
1条回答
  • 2021-01-19 19:16

    Clicking done will call moviePlayerDidExitFullscreen

    But if you let the movie finish normally moviePlaybackDidFinish is called but since IOS 6 it doesn't exit you from fullscreen mode. So the fix is to add player.fullscreen = FALSE; right before calling [player.view removeFromSuperview];

    0 讨论(0)
提交回复
热议问题