iPad MPMoviePlayerController 全屏旋转移动所有视图

发布于 2024-12-09 05:18:15 字数 191 浏览 5 评论 0原文

我在 MPMoviePlayerController 中的全屏模式下遇到旋转问题:当我在全屏模式下旋转 iPad 时,电影播放器​​后面的视图也会旋转,但没有状态栏,并且所有内容都向上移动 20 像素。

如果我在旋转(推动屏幕)之前显示控制器和状态栏,则一切正常。例如,我认为问题是由于旋转期间没有状态栏引起的。

有人可以帮助我吗?谢谢

I have a problem with rotations in full screen mode in a MPMoviePlayerController: When I rotate the iPad in full screen mode the views behind the movie player rotate too, but there isn't a status bar and all moves 20 px up.

If I show the controllers and the status bar before rotate (pushing the screen) all works fine. Instance of that, I suppose the problem is caused because there isn't status bar durning the rotation.

Someone can help me please? Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望笑 2024-12-16 05:18:15

最后,我使用 MPMoviePlayerViewController 而不是 MPMoviePlayerController 解决了该问题。

在全屏旋转期间,状态栏不会消失,一切正常:)

Finally I resolve the problem using a MPMoviePlayerViewController instead a MPMoviePlayerController.

Durning the full screen rotation the status bar doesn't disappear and all works fine :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文