使用Core Animation移动图像

时间:2011-10-17 18:12:27

标签: iphone objective-c core-animation quartz-graphics quartz-2d

我知道为什么我在屏幕上移动的小图像模糊不清? 在运动时,图像中的小细节变得模糊不清,我认为这是一个问题。

        CABasicAnimation *anim = [CABasicAnimation animationWithKeyPath:@"position"];
    anim.fromValue  = [NSValue valueWithCGPoint:CGPointMake(px2.x, px2.y)];
    anim.toValue    = [NSValue valueWithCGPoint:CGPointMake(P3x, P3y)];
    anim.duration   = 1.5f;
    anim.repeatCount =1;
    anim.removedOnCompletion = YES;
    anim.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
    [LA  addAnimation:anim forKey:@"position"];

1 个答案:

答案 0 :(得分:0)

最终这被确定为LCD面板滞后。