【发布时间】:2015-02-07 04:57:49
【问题描述】:
AVFullscreenVideoController 是在 ios8 中全屏播放 youtube 时的视图控制器。我可以通过操纵应用程序委托方法让它旋转
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
/*
if view controller is AVFullscreenVideoController or MPInlineVideoFullscreenViewController or MPMoviePlayerViewController"
return UIInterfaceOrientationMaskAllButUpsideDown;
*/
}
我的目标是保留我的视图控制器的当前 UIInterfaceOrientationMask 并允许在播放时旋转到全屏视频。
如何在 appdelegate.m 中不添加代码也能达到同样的效果?谢谢!
【问题讨论】:
标签: ios objective-c youtube-api autorotate