草庐IT

iphone - CGAffineTransformMakeRotation 围绕外部点

有没有办法使用CGAffineTranformMAkeRotation围绕外部点旋转UIImage?非常感谢! 最佳答案 这是一个使用与CoreGraphicsCGAffineTransformAPI格式相同格式的函数。这与其他“RotateAt()”API的工作方式完全相同。该操作相当于以下规范:translate(pt.x,pt.y);旋转(角度);翻译(-pt.x,-pt.y);CGAffineTransformCGAffineTransformMakeRotationAt(CGFloatangle,CGPointpt){co