在iOS 8中输入视频时旋转

在iOS 8中输入视频时旋转,第1张

概述我在iOS 7中实现了这个代码并且工作得很好,但是在iOS 8中它不起作用 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youTubeStarted:) name:@"UIMoviePlayerControllerDidEnterFullscreenNotification" object:ni 我在iOS 7中实现了这个代码并且工作得很好,但是在iOS 8中它不起作用

[[NSNotificationCenter defaultCenter] addobserver:self selector:@selector(youTubeStarted:) name:@"UIMovIEPlayerControllerDIDEnterFullscreenNotification" object:nil];[[NSNotificationCenter defaultCenter] addobserver:self selector:@selector(youTubeFinished:) name:@"UIMovIEPlayerControllerWillExitFullscreenNotification" object:nil];-(voID)youTubeStarted{    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];    appDelegate.fullScreenVIDeoIsPlaying = YES;}-(voID)youTubeFinished{    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];    appDelegate.fullScreenVIDeoIsPlaying = NO;}

我已经尝试将UIMovIEPlayerControllerDIDEnterFullscreenNotification更改为MPMovIEPlayerWillEnterFullscreenNotification.没有运气

还有别的办法吗?

编辑

看看我在iOS 8.1中使用northBlast的答案会发生什么.它与iOS 8.0和iOS完美配合. iOS 8.0.2

解决方法 好的,这是一个解决方案,我现在正在使用..我先检查哪个 *** 作系统正在运行该设备然后使用适当的NSNotificationCenter 总结

以上是内存溢出为你收集整理的在iOS 8中输入视频旋转全部内容,希望文章能够帮你解决在iOS 8中输入视频时旋转所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1060687.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存