自动旋转模态视图
我在纵向模式下创建了一个模态视图。当它处于横向模式时,它不旋转。 如何在 splitViewController 中将模态视图从纵向旋转为横向?
I have created a modal view in Portrait mode. when it is in lanscape mode it is not rotating.
How to rotate a modal view from Portrait to Lanscape in splitViewController?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有类似的问题。模态视图是从 DetailViewController 加载的,当 iPad 旋转时,模态视图会从视图中完全消失。
我最接近的修复方法是,在旋转后,检查是否加载了模态视图,然后重新加载它,如下所示:
I have a similar problem. The modal view is loaded from the DetailViewController, and when the iPad is rotated, the modal view disappears from view completely.
The closest I've come to a fix is, after rotating, to check whether a modal view was loaded, and then reload it, like so: