在 iPad 上处于横向模式时水平翻转视图控制器

发布于 2024-12-01 20:19:03 字数 143 浏览 4 评论 0原文

我的 iPad 应用程序设置为横向模式。我尝试使用 setModalTransitionStyle:UIModalTransitionStyleFlipHorizo​​ntal 来让视图控制器水平翻转,但它的效果就好像它仍然处于纵向状态一样。有什么办法可以解决这个问题吗?

My iPad app is set to landscape mode. I tried to use setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal to have the view controller flip horizontally, but it does so as if it is still in portrait. Is there any way to fix this?

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

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

发布评论

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

评论(2

岁月如刀 2024-12-08 20:19:03

http://aseriesoftubes.com/articles/ipad-development-101-orientation/

检查此示例教程..
它将帮助你......

在视图之间切换将是你的解决方案......

http://aseriesoftubes.com/articles/ipad-development-101-orientation/

check this sample tutorial..
it will help u..

changing between views would be an solution for u...

司马昭之心 2024-12-08 20:19:03

您是否想过将模态视图设置为陆地空间模式,如下所示:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}

Have you thought to set the modal view into the landspace mode like this:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文