Rounded async imageview downloader based on AFNetworking 2 and lightly cached
============
Rounded async imageview downloader based on AFNetworking 2 and lightly cached
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
}
}];
You need use next method for load from resource
[avatarView setImage:[UIImage imageNamed:“test.png”]];
That’s all
PAImageView is available under the MIT license.