문제

I'm trying to use CATransform3DRotate to rotate a UIView/UIImageView on screen but it displays some sort of rotation animation when I apply the transformation to the View. Is there any way that I can disable this and just get the final result without the intermediate effect?

도움이 되었습니까?

해결책

[CATransaction begin];
[CATransaction setDisableActions: YES];
// Your code here
[CATransaction commit];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top