Home

Awesome

JDAvatarProgress

Version License Platform

<img src="JDAvatarProgressDemo.gif" width=320>

Swift

JDAvatarProgress is available in Swift also

JDSwiftAvatarProgress

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Cocoapod

JDAvatarProgress is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "JDAvatarProgress"

Manual

Clone the repository:

$ git clone https://github.com/JellyDevelopment/JDAvatarProgress.git

Drag and drop JDAvatarProgress.h and JDAvatarProgress.h files into your project. Add #import "JDAvatarProgress.h" to all view controllers that need to use it.

Requirements

QuartzCore.framework

Sample Usage


[self.avatarImgView setImageWithURL:[NSURL URLWithString:@"http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg"];

Advanced Usage


[self.avatarImgView setImageWithURL:[NSURL URLWithString:@"http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg"]
                        placeholder:nil
                      progressColor:[UIColor orangeColor]
                progressBarLineWidh:JDAvatarDefaultProgressBarLineWidth
                        borderWidth:JDAvatarDefaultBorderWidth
                        borderColor:nil
                         completion:^(UIImage * resultImage, NSError * error){
                             
                             NSLog(@"image => %@", resultImage);
                             NSLog(@"error => %@", error);
                             
                         }];

Author

License

JDAvatarProgress is available under the MIT license. See the LICENSE file for more info.