UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown不支持纵向两种变体吗? [英] UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown doesn't support both variants of the portrait orientation?

查看:70
本文介绍了UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown不支持纵向两种变体吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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?

推荐答案

将其放置在旋转坐标系中.请参阅UIView的 transform 属性.

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

这篇关于UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown不支持纵向两种变体吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆