我已经使用 CATransform3DMakeRotation 实现了自定义翻转(参见 UIView vertical flip animation )。 它工作正常,导致翻转,问题是它只是一个简单的旋转。
如何模仿 iOS 风格的翻转,在翻转过程中 View 似乎倾斜?
干杯!
最佳答案
尝试添加视角。
CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity;
rotationAndPerspectiveTransform.m34 = 1.0 / -500;
关于iphone - 2 View 之间的自定义翻转,如何模仿iOS翻转?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17209945/