Skip to content

Instantly share code, notes, and snippets.

@gmcerveny
Created May 16, 2012 21:51
Show Gist options
  • Save gmcerveny/2714253 to your computer and use it in GitHub Desktop.
Save gmcerveny/2714253 to your computer and use it in GitHub Desktop.
- (UIImage *)getNextImage {
if (!self.demonstrationImages || [self.demonstrationImages count] == 0)
return nil;
UIImage *nextImage = [self.demonstrationImageEnumerator nextObject];
if (nextImage)
return nextImage;
self.demonstrationImageEnumerator = [self.demonstrationImages objectEnumerator];
return [self getNextImage];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment