Saturday, 14 June 2014

UIImageView Animation Tutorial

Isn't there a lot of buzz on internet about this new programming language introduced by Apple. I am excited to learn and share my experience with you. In this post we are going to cover a simple explosion UIImageView animation.

Tutorial Prerequisite:
Below outlined is the code snippet which will take care of the animation,

  It contains,
  • 'imageList' array of UIImage Objects 
  • 'animationBtn' is UIButton used to display state of animation
  • 'myImageView' is an outlet to the UIImageView
So what exactly are we doing here is toggling between the animation states on a click of a button.

Video Tutorial :

Sample Code