【发布时间】:2014-02-25 04:59:58
【问题描述】:
我正在使用以下代码转换 imageView,它可以正常工作,但会使图像像素化。
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 框架之外..
-
@iMani 你能解释一下这个改变 UIImageView 框架之外的锚点吗?
标签: ios iphone uiimageview transform uiviewanimation