Reputation: 2435
I need to make an image view animate it's self on and off of the screen. I want it to be when the user taps the screen the image slides up. Is there a relatively easy way to smoothly move the image view?
Thanks for any help
Upvotes: 0
Views: 945
Reputation: 523164
Use an animation block, e.g.
[UIView beginAnimations:@"slide-up" context:NULL];
imageView.center = CGPointMake(200, -100); // change this to somewhere else you want.
[UIView commitAnimations];
See the iPhone Application Programming Guide for detail.
Upvotes: 2