Skip to content

Easy customizable avatar image asynchronously with progress bar animated

License

Notifications You must be signed in to change notification settings

JellyDevelopment/JDAvatarProgress

Repository files navigation

JDAvatarProgress

Version License Platform

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.

About

Easy customizable avatar image asynchronously with progress bar animated

Resources

License

Stars

Watchers

Forks

Packages

No packages published