iOS18 AVPlayerViewController 出现卡住界面

  • (AVPlayerViewController *)avPlayerVC { if(!_avPlayerVC){ _avPlayerVC =[[AVPlayerViewController alloc] init]; _avPlayerVC.videoGravity = AVLayerVideoGravityResizeAspectFill; _avPlayerVC.showsPlaybackControls = NO; [self addSubview:_avPlayerVC.view]; [_avPlayerVC.view mas_makeConstraints:^(MASConstraintMaker *make) { make.edges.mas_equalTo(0); }]; [self sendSubviewToBack:_avPlayerVC.view]; } return _avPlayerVC;

}

我在一个cell里添加这个,界面无法动弹。只有在iOS18会这样

同上,模拟器上没问题,真机运行也会卡主

俺也一样,有解决方案吗

iOS18 AVPlayerViewController 出现卡住界面
 
 
Q