First off, apple doc is your friend. All the information I give you is derived from this. Apple also provides many sample code, and you should definitely take a look at it.
You can (easily) accomplish this using the UIView animation. Assuming you have a UIImageView for your image, you can use the animateWithDuration:(NSTimeInterval)duration animations:...
method.
For instance:
[UIView animateWithDuration:10.0f animations:^{
You can become more attractive by adding more and more animation options, getting a completion block, etc. All this is achieved using variations of the animateWithDuration method. There are tons of tutorials on animating UIView and tons of documentation.
If you do not want to use blocks (bit ^ {... code ...} above), you can run the animation as follows:
[UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:10.0f]; imageView.frame = ... [UIView commitAnimations];
source share