UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown 不支持纵向方向的两种变体?

发布于 2024-09-12 19:26:12 字数 212 浏览 8 评论 0原文

我使用 UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown 过渡在视图控制器之间翻转。

问题是,当我尝试支持颠倒的纵向方向时,这些可爱的卷曲过渡仍然认为它们处于正常的纵向方向,因此卷曲从上到下,卷曲从下到上。

看起来这些转换并不关心设备方向,也不关心界面方向,所以 - 有没有办法强制它们翻转?

I'm using the UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown transitions to flip between view controllers.

Problem is when I try to support the upsidedown portrait orientation , these lovely curl transitions still think they are in normal portrait orientation, thus the curlup goes from top to bottom and the curldown goes from bottom to top.

It seems like these transitions doesnt care about the device orientation and neither the interface orientation, so - is there a way to force them to flip?

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

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

发布评论

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

评论(1

物价感观 2024-09-19 19:26:12

将它们放在旋转坐标系中。请参阅 UIView 的 transform 属性。

Put them in a rotated coordinate system. See the transform property of UIView.

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