使用CATransform3DRotate时禁用旋转动画(Disable rotating animation when using CATransform3DRotate)
我正在尝试使用CATransform3DRotate在屏幕上旋转UIView / UIImageView,但是当我将转换应用于View时,它会显示某种旋转动画。 有什么方法可以禁用它,只是在没有中间效果的情况下获得最终结果?
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]; [CATransaction begin]; [CATransaction setDisableActions: YES]; // Your code here [CATransaction commit];更多推荐
发布评论