我正在尝试围绕右下角旋转图像。
现在它围绕中心旋转。
CATransform3D transform = CATransform3DIdentity;
transform.m34 = 1.0f/-800.0f; // perspective
transform = CATransform3DRotate(transform, (M_PI * 90), 0.0f, 0.0f, 1.0f);
if (animation)
{
[UIView animateWithDuration:0.9
animations:^{
[[_sendRecordView layer] setTransform:transform];
} completion:NULL];
}
else
{
[[_sendRecordView layer] setTransform:transform];
}
答案 0 :(得分:0)
您需要设置:
questionView
其中X和Y是所需的右下边缘点。
编辑: 默认情况下,视图会围绕中心旋转,因为anchorPoint位于该位置。