首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能否定AVPlayerViewController在iOS16中的存在

不能否定AVPlayerViewController在iOS16中的存在
EN

Stack Overflow用户
提问于 2022-10-12 11:42:53
回答 1查看 85关注 0票数 0

由于iOS 16对AVPlayerViewController进行了更改,左上角的“解散”按钮('x')根本无法工作。“tap”是正常的,但感觉上UIButton目标什么也不做。我觉得我漏掉了一些显而易见的东西。是否有需要使用的委托方法或设置?在iOS 16之前,所有这些都非常有效。

代码语言:javascript
复制
AVPlayerViewController *vc = [[AVPlayerViewController alloc] init];
vc.player = [AVPlayer playerWithURL:[NSURL URLWithString:videoInfo.VideoURL]];
vc.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:vc animated:NO completion:nil];
EN

回答 1

Stack Overflow用户

发布于 2022-11-01 05:44:07

使用动画。可以修好但我不知道为什么。

代码语言:javascript
复制
[self presentViewController:vc animated:YES completion:nil];
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74041244

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档