使用CATransform3DRotate时禁用旋转动画
问题描述:
我想使用CATransform3DRotate
在屏幕上旋转UIView/UIImageView,但是当我将转换应用到视图时,它会显示某种旋转动画。有没有什么办法可以禁用这个功能,只是在没有中间效果的情况下得到最终结果?使用CATransform3DRotate时禁用旋转动画
答
[CATransaction begin];
[CATransaction setDisableActions: YES];
// Your code here
[CATransaction commit];
你去通过这个链接:http://stackoverflow.com/questions/10155641/disabling-animation-when-changing-layer-view-properties RQ = 1 它可能会帮助你。 –