Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone UIImageView旋转后图像模糊_Iphone_Ios_Cocoa Touch - Fatal编程技术网

Iphone UIImageView旋转后图像模糊

Iphone UIImageView旋转后图像模糊,iphone,ios,cocoa-touch,Iphone,Ios,Cocoa Touch,我使用以下代码旋转UIImageView: [imageView setTransform:CGAffineTransformMakeRotation(-0.10)]; 但是旋转后它看起来很模糊 有什么问题吗?可能是生成的帧没有在偶数整数上对齐。当您在半像素边界上绘图时,某些绘图例程会使事物看起来模糊。 如果您看到任何非整数值,请使用其中一个楼层函数修改生成的框架,以便将其捕捉到边界。但是您提供的链接也包含解决方案……我使用该链接解决方案,但仍然模糊

我使用以下代码旋转UIImageView:

[imageView setTransform:CGAffineTransformMakeRotation(-0.10)];
但是旋转后它看起来很模糊


有什么问题吗?

可能是生成的帧没有在偶数整数上对齐。当您在半像素边界上绘图时,某些绘图例程会使事物看起来模糊。
如果您看到任何非整数值,请使用其中一个楼层函数修改生成的框架,以便将其捕捉到边界。

但是您提供的链接也包含解决方案……我使用该链接解决方案,但仍然模糊