删除UIView动画加速
问题描述:
如何删除UIView动画所做的加速和减速动画?删除UIView动画加速
如果你不明白我的意思,当动画开始时它会加速,然后当它结束时,它会减速。我想动画是一个恒定的速度。 这里是我的代码看起来像(我必须使用旧的动画方式)的例子。
-(void)animate:(NSString*)animationID finished:(BOOL)finished context:(void*)context {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDidStopSelector:@selector(animateStop:finished:context:)];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:3];
Motion.center = (*PathPoints)[Location];
[UIView commitAnimations];
}
答
[UIView setAnimationCurve: UIViewAnimationCurveLinear];
完美啊,我甚至没有看setAnimationCurve由于长期曲线它是。想象它必须做圆圈等。感谢Ash。 – 2012-01-13 18:14:36
它不适合我 – Aitul 2012-10-15 15:07:00