图像沿y轴旋转

时间:2013-02-28 08:53:58

标签: iphone ios rotation uiimage axis

enter image description here

如何让图像沿y轴旋转? 我尝试使用此代码,但它只是沿图像的y轴旋转。

imageView.layer.transform = CATransform3DConcat(imageView.layer.transform, CATransform3DMakeRotation(180,0.0,1.0,0.0));

任何人都可以解决我的问题吗?非常感谢。

1 个答案:

答案 0 :(得分:1)

首先翻译(图像宽度的一半),然后旋转。