Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 982 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 982 Bytes

PAImageView

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

Rounded async imageview downloader based on AFNetworking 2 and lightly cached

Swift version here

Snapshot

Snapshop PASwitch

Usage

PAImageView *avatarView = [[PAImageView alloc] initWithFrame:aFrame backgroundProgressColor:[UIColor whiteColor] progressColor:[UIColor lightGrayColor]];
[self.view addSubview:avatarView];
// Later
[avatarView setImageURL:URL];

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.