Ios 有没有办法强制全屏视频界面定向

Ios 有没有办法强制全屏视频界面定向,ios,objective-c,avplayer,uiinterfaceorientation,Ios,Objective C,Avplayer,Uiinterfaceorientation,我正在搜索它,但找不到解决方案。我只想为应用程序支持UIInterfaceOrientationGrait。然而,有一个VC用于播放视频。我将这些用于其他风险投资 我知道是这样的,但是。有没有办法只支持UIInterfaceOrientationPortrait,但可以在全屏横向模式下播放视频?例如,将图层旋转90度以纵向显示屏幕,只需旋转视频…@Sulthan它会被扩展吗? - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceO

我正在搜索它,但找不到解决方案。我只想为应用程序支持
UIInterfaceOrientationGrait
。然而,有一个VC用于播放视频。我将这些用于其他风险投资


我知道是这样的,但是。有没有办法只支持
UIInterfaceOrientationPortrait
,但可以在全屏横向模式下播放视频?例如,将图层旋转90度

以纵向显示屏幕,只需旋转视频…@Sulthan它会被扩展吗?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
    return UIInterfaceOrientationIsPortrait(interfaceOrientation);
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
    return UIInterfaceOrientationMaskPortrait;
}


- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
    return UIInterfaceOrientationPortrait;
}