UIMoviePlayerController IDEXITFullScreenNotification NSNotification在iOs 8中不工作

UIMoviePlayerController IDEXITFullScreenNotification NSNotification在iOs 8中不工作,ios,iphone,ipad,ios8,nsnotificationcenter,Ios,Iphone,Ipad,Ios8,Nsnotificationcenter,UIMoviePlayerController IDEXITFullScreenNotification NSNotification在iOs 8中不起作用我也面临同样的问题,但最终在嵌入式youtube视频中使用了UIWindowDiBecomeVisibleNotification和UIWindowDiBecomeHiddenNotification(假设通过查看选择器方法名称) 以上是一个补丁解决方案,(希望这有帮助)我也面临同样的问题,但最终使用了uiWindowDiBecomeVisi

UIMoviePlayerController IDEXITFullScreenNotification NSNotification在iOs 8中不起作用

我也面临同样的问题,但最终在嵌入式youtube视频中使用了
UIWindowDiBecomeVisibleNotification
UIWindowDiBecomeHiddenNotification
(假设通过查看选择器方法名称)


以上是一个补丁解决方案,(希望这有帮助)

我也面临同样的问题,但最终使用了
uiWindowDiBecomeVisibleNotification
uiWindowDiBecomeHiddenNotification
,用于嵌入式youtube视频(假设通过查看选择器方法名称)


以上是一个修补程序,希望能有所帮助)

我使用的是
MPMoviePlayerController
,效果很好。我想,根据您使用它的目的,您不需要
UIMoviePlayerController

 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteredFullScreen:) name:UIWindowDidBecomeVisibleNotification object:nil];
 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(exitedFullScreen:)  name:UIWindowDidBecomeHiddenNotification object:nil];

我使用的是
MPMoviePlayerController
,效果很好。我想,根据您使用它的目的,您不需要
UIMoviePlayerController

 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteredFullScreen:) name:UIWindowDidBecomeVisibleNotification object:nil];
 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(exitedFullScreen:)  name:UIWindowDidBecomeHiddenNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(youTubeFinished)
                                                 name:MPMoviePlayerDidExitFullscreenNotification
                                               object:self.player.moviePlayer];