Skip to content

LemonCake/ImageSpinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published