Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
So I have an image moving across the screen.

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.
 
thank you. It works great!! I think I just needed someone to kick start my brain this morning.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.