我正在使用以下代码转换图像视图,它工作正常,但它使图像像素化。
CABasicAnimation *animation=[CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]
animatation.fromValue=[NSNumber numberWithDouble:0];
animation.toValue=[NSNumber numberWithDouble:0.05];
animation.fillMode=KCAFillModeForwards;
animation.cumalative=YES;
animation.additive=NO;
animation.repeatCount=1;
animation.removedOnCompletion=NO;
animation.duation=0.0;
[needleImageView.layer.anchorpoint=CGPointMake(1,1)];
[needleImageView.layer addAnimation:animation forKey:@"transform"];
使用上面的代码,它可以转换图像,但会使图像像素化。谢谢
您使用的是哪个 iPad?如果您使用的是没有视网膜显示屏的ipad,那么它将在转换时像素化。