我用以下代码旋转我的图像:
CGAffineTransform rotate = CGAffineTransformMakeRotation( [ratio floatValue] );
[imageView setTransform:rotate];
Run Code Online (Sandbox Code Playgroud)
但它没有锋利的边缘,有人知道解决方案吗?
这是我得到的图像:

当UIView旋转时,它的边框看起来很难看.根本没有发生抗锯齿的事情.此外,如果它是UIImageView,旋转变换矩阵时不会发生抗锯齿.有没有办法实现图像的平滑边缘和平滑旋转?