【问题标题】:Moving an image using Core Animation使用 Core Animation 移动图像
【发布时间】:2011-10-17 18:12:26
【问题描述】:

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

        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"];

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多