2014-02-25 41 views
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"]; 

使用上面的代碼它轉換圖像,但它使圖像像素化。謝謝

+0

將定位點更改爲UIImageView框架的外部.. – Mani

+0

@iMani您可以請解釋這個以更改UIImageView框架之外的定位點。 – user3110080

回答

0

您正在使用哪個ipad?如果您使用的是沒有的視網膜顯示屏,那麼它將在變形時像素化。