推送视图控制器不旋转
我的应用程序中有两个子视图。
顶部是工具栏,底部是导航控制器。
在导航控制器中,我有一个表,每个单元格都将其推送到带有 YouTube 视频的新视图控制器。问题是视频不旋转。
当我在视频 viewController 中并旋转应用程序时,表格会收到 AutoRotate 事件。
当我弹出视图时,我可以看到事件发生在桌子上,并且桌子是横向的。这只是一个测试,因此事件应该实时将视频旋转到正确的视图。
我发现有几篇文章说,当 ViewController 不是 rootViewController 时,它不会倾斜。
如何响应视频事件而不是桌面事件?
I have two subviews in my app.
At the top is a toolbar and in the bottom is a navigation controller.
In the navigation controller I have a table which every cell push to a new view controller with a youtube video. The problem is that the video doesn't rotate.
When I am in the video viewController and rotate the app, the table gets the AutoRotate event.
When I pop the view I can see that the event happened on the table and the table is in landscape. It was just a test, so in real time the event should rotate the video to the right view.
I have found a couple of articles which say that the ViewController won't tilt when it's not the rootViewController.
How can I respond to the video event instead of the table event?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论