Quote:
Originally Posted by sandromandro
hey, i have a question, in my project i have a falling image but it falls only one time. is it possible to repeat the falling image?
my code:
please help me 
|
You should really use Core Animation to do this instead of a timer. With Core Animation, you just tell it the position you want to animate to, and it does it for you, more efficiently, and more smoothly, than you could yourself.
Take a look at the UIView class method animateWithDuration:animations:completion: or animateWithDuration:delay

ptions:animations:compl etion:
If you search on that method name here you should find a number of examples of how to use it. I know if you search on "animateWithDuration" and my name, you'll find quite a few examples I've posted.
The longer form, with an options parameter, takes a list of options, one of which is an auto-repeat setting, (UIViewAnimationOptionRepeat)