iPad MPMoviePlayerController 全屏旋转移动所有视图
我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,我使用 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 :)