0
안녕하세요. 내 project.i에서 CATransform3D를 사용하려고합니다. 아래 표시된 레이어를 변형하기위한 코드 스 니펫을 보았습니다. 아래 코드로 레이어를 변환하는 방법입니다. 하나는 정상 상태에 있어야 내 계층을 얻을 수있는 변화의 길을 게시하시기 바랍니다 수있는 계층변환 된 레이어를 ios에서 정상적인 상태로 만듭니다.
-(IBAction)animateThumbnail{
CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity;
rotationAndPerspectiveTransform.m34 = 1.0/-500;
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform,30.0f * M_PI/180.0f , 0.0f, 1.0f, 0.0f);
[CATransaction begin];
[CATransaction setValue:[NSNumber numberWithFloat:3.0]forKey:kCATransactionAnimationDuration];
imageLayer.transform = rotationAndPerspectiveTransform;
[CATransaction commit];
}
의 변화 이전과 같은 의미 정상 차원에서 레이어를 얻을. 미리 감사드립니다.
빠른 리플레이를 해줘서 고맙습니다. – ajay
jtbandes 나는 당신의 접근 방식을 시도했지만 한 번 그것을 변형 정상적인 계층을 찾지 못했습니다. – ajay
죄송합니다. 무슨 뜻인지 잘 모르겠습니다. – jtbandes