CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Javier Soto.
Easy to use UIView subclass to quickly add a cool animated carrousel of pictures to your app.
Documentation: http://cocoadocs.org/docsets/JSAnimatedImagesView/
pod 'JSAnimatedImagesView', '~> 1.0.' to your Podfile.-- or --
$ git clone [email protected]:JaviSoto/JSAnimatedImagesView.git$ git submodule update --initJSAnimatedImagesView.(h/m) onto your project.Dependencies/MSWeakTimer/MSWeakTimer.(h/m) onto your project.JSAnimatedImagesView.h into the controller where you want to use it.JSAnimatedImagesView instance either via code, or in interface builder (by creating a UIView and changing its class to JSAnimatedImagesView).viewDidLoad method):self.animatedImagesView.dataSource = self;
@interface MyViewController () <JSAnimatedImagesViewDataSource> // Conform to the protocol
@end@implementation MyViewController
- (NSUInteger)animatedImagesNumberOfImages:(JSAnimatedImagesView *)animatedImagesView
{
return self.myImageNames.count;
}
- (UIImage *)animatedImagesView:(JSAnimatedImagesView *)animatedImagesView imageAtIndex:(NSUInteger)index
{
return [UIImage imageNamed:[self.myImageNames objectAtIndex:index]];
}
@end@property (nonatomic, assign) NSTimeInterval timePerImage;Specifies the time each image is viewed until the next image is faded in.
@property (nonatomic, assign) NSTimeInterval transitionDuration;Specifies the duration of the transition (fade-out/fade-in) animation.
JSAnimatedImagesView is compatible with iOS5.0+JSAnimatedImagesView requires ARC.JSAnimatedImagesView is available under the MIT license. See the LICENSE file for more info.