So I have an image moving across the screen.
I can use something like:
However, I would like to get image current location, and animate it to next position. So I have something like:
This does the job, but doesn't animate the move.....It just jumps to new location. How would I integrate the animation so it slides over as it did before?
Thank you very much.
I can use something like:
Code:
[self moveImage:aViewa duration:4.0
curve:UIViewAnimationCurveLinear x: 20.0 y:00.0];
However, I would like to get image current location, and animate it to next position. So I have something like:
Code:
CGPoint oldPosition = aViewa.center;
aViewa.center = CGPointMake(oldPosition.x - 20, oldPosition.y);
This does the job, but doesn't animate the move.....It just jumps to new location. How would I integrate the animation so it slides over as it did before?
Thank you very much.