Skip to content

Instantly share code, notes, and snippets.

@rounak
Created January 22, 2014 22:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rounak/8568310 to your computer and use it in GitHub Desktop.
Save rounak/8568310 to your computer and use it in GitHub Desktop.
UIImageView *imageView = [[UIImageView alloc] initWithFrame:frame];
imageView.animationImages = [self animationImages]; //method to return an array of UIImage objects
imageView.animationDuration = 0.5; //could be whatever you want
[imageView startAnimating]; //for starting animation
[imageView stopAnimating]; //for ending animation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment