我已将以下转换应用于 UIView 的图层,如下所示:
CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity;
rotationAndPerspectiveTransform.m34 = 1.0 / -850;
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, M_PI_4*1.1,0.0f, 1.2f, 0.0f);
self.centerView.layer.transform = rotationAndPerspectiveTransform;
但没有那么成功,我只是想应用变换,如下图所示
任何帮助将不胜感激。感谢您阅读我的问题