0
我正在使用以下代碼轉換imageView,它工作正常,但它使圖像像素化。轉換UIImageView使iPad中的UIImageView圖像像素化
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"];
使用上面的代碼它轉換圖像,但它使圖像像素化。謝謝
將定位點更改爲UIImageView框架的外部.. – Mani
@iMani您可以請解釋這個以更改UIImageView框架之外的定位點。 – user3110080