TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | BSD |
ReleasedLast Release | Nov 2015 |
Maintained by Antoni Kedracki, Polidea.
This library is deprecated in favor of PLXImageManager
Image manager/downloader for iOS
PLURLImageProvider * provider = [PLURLImageProvider new];
PLImageManager * manager = [[PLImageManager alloc] initWithProvider:provider];
The provider is responsible for retrieving a image if it is not available in cache. The standard PLURLImageProvider is provided as convenience. It takes a URL and simply downloads up to 5 images at once. By implementing the PLImageManagerProvider protocol yourself, you can adapt the manager to fit your needs.
[manager imageForIdentifier:@”http://placehold.it/350/00aa00/ffffff”
placeholder:[UIImage imageNamed:@”placeholder”
callback:^(UIImage *image, BOOL isPlaceholder) {
//consume the image here
}];
A example application is provided,
You can read more about the internal workings of PLImageManager here.
Copyright (c) 2013 Polidea. This software is licensed under the BSD License.