Animates spinning an UIImage
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
.gitignore
ImageSpinner.h
ImageSpinner.m
MIT-LICENSE
README

README

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.