1
다음과 같은 코드를 사용하여 오른쪽 방향으로 UIView.it rotatres를 회전합니다. 그러나 오른쪽면 대신 아래쪽을 회전시키고 싶습니다. (오른쪽에있는 것처럼), 어떤 도움을 주시겠습니까? Z 축 방향으로)Z 방향 UI 뷰 회전?
UIView *myView = self.view;
CALayer *layer = myView.layer;
CATransform3D transform = CATransform3DIdentity;
transform.m34 = 1.0/-2000;
CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity;
rotationAndPerspectiveTransform.m34 = 1.0/-500;
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, 45.0f * M_PI/180.0f, 0.0f, 1.0f, 0.0f);
layer.transform = rotationAndPerspectiveTransform;