views:

287

answers:

1

Hello,

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

+2  A: 

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.

KennyTM
Wow thats really simple thanks!
happyCoding25