LemonCake / ImageSpinner

Animates spinning an UIImage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple class that let's you assign an image and spin it 360deg endlessly

eg. 

// initialization
ImageSpinner *spinner = [[ImageSpinner alloc] initWithImage:[UIImage imageNamed:@"example.png"]];

// Animation methods
[spinner startAnimation];
[spinner stopAnimation];

// Set another image
[spinner setImage:[UIImage imageNamed:@"example2.png"];

Note: The image will continue spinning to it's original position even when you call stop animation.

Space shuttle image from The Noun Project (http://thenounproject.com/). Licensed under Creative Commons Attribution.

About

Animates spinning an UIImage

License:MIT License


Languages

Language:Objective-C 100.0%