由于iOS 16对AVPlayerViewController进行了更改,左上角的“解散”按钮('x')根本无法工作。“tap”是正常的,但感觉上UIButton目标什么也不做。我觉得我漏掉了一些显而易见的东西。是否有需要使用的委托方法或设置?在iOS 16之前,所有这些都非常有效。
AVPlayerViewController *vc = [[AVPlayerViewController alloc] init];
vc.player = [AVPlayer playerWithURL:[NSURL URLWithString:videoInfo.VideoURL]];
vc.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:vc animated:NO completion:nil];发布于 2022-11-01 05:44:07
使用动画。可以修好但我不知道为什么。
[self presentViewController:vc animated:YES completion:nil];https://stackoverflow.com/questions/74041244
复制相似问题