Hi,
The following code works great, but the shift is too sudden and it stops suddenly. How can I apply ease to the speed at the beginning at at the end of the animation?
many thanks in advance
The following code works great, but the shift is too sudden and it stops suddenly. How can I apply ease to the speed at the beginning at at the end of the animation?
Code:
-(void)shiftView:(UIView*)view
{
static int deltaX = 300;
[UIView beginAnimations: @"shift" context: nil];
view.center = CGPointMake( view.center.x + deltaX, view.center.y);
[UIView commitAnimations];
}
many thanks in advance