Skip to content
Rounded async imageview downloader based on AFNetworking 2 and lightly cached
Objective-C Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.md
PAAImageView.h
PAAImageView.m
PAAImageView.podspec
README.md
snapshot.gif

README.md

PAAImageView

============

Rounded async imageview downloader based on AFNetworking 2 and lightly cached

Swift version here

Snapshot

Snapshop PASwitch

Usage

PAAImageView *avatarView = [[PAAImageView alloc] initWithFrame:aFrame backgroundProgressColor:[UIColor whiteColor] progressColor:[UIColor lightGrayColor]];
[self.view addSubview:avatarView];
// Later
[avatarView setImageURL:URL];
// or
[avatarView setImageURL:URL completion:^(NSError *error) {
	if(error) {
		// Handle your error
	}
}];

Update

  1. You can load image using resources or another source (for example contact image);

You need use next method for load from resource [avatarView setImage:[UIImage imageNamed:"test.png"]];

  1. You can set width for background circle [avatarView setBackgroundWidth:10.f];

That's all

Contact

Pierre Abi-aad @abiaad

License

PAImageView is available under the MIT license.

You can’t perform that action at this time.