Quote:
Originally Posted by lilzz
I have an animated image on screen. How do I make it move across the screen in the easiest method? I don't want to use complicated methods or other framework like coco2d.
I like to have the simplest method.
|
Use view animation, like this:
Code:
[UIView beginAnimations: @"move" context: nil];
animated_view.center = newCenter;
[UIView commitAnimations];
The system will animate the view's movement to a new location.