Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UIImageView我使用以下代码旋转 a :
UIImageView
[imageView setTransform:CGAffineTransformMakeRotation(-0.10)];
但是旋转后看起来很模糊,就像这样。
有什么问题?
可能是结果帧未在偶数整数上对齐。当您在半像素边界上绘图时,某些绘图例程会使事物看起来模糊。如果您看到任何非整数值,请使用其中一个floor()函数来修改结果帧,以便将其捕捉到边界。
floor()