Updated Readme
This commit is contained in:
parent
0ecd13667d
commit
3b9c09142a
24
README.md
24
README.md
|
@ -113,19 +113,17 @@ SDWebImageManager *manager = [SDWebImageManager sharedManager];
|
|||
It's also possible to use the async image downloader independently:
|
||||
|
||||
```objective-c
|
||||
[SDWebImageDownloader.sharedDownloader downloadImageWithURL:imageURL
|
||||
options:0
|
||||
progress:^(NSInteger receivedSize, NSInteger expectedSize)
|
||||
{
|
||||
// progression tracking code
|
||||
}
|
||||
completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished)
|
||||
{
|
||||
if (image && finished)
|
||||
{
|
||||
// do something with image
|
||||
}
|
||||
}];
|
||||
SDWebImageDownloader *downloader = [SDWebImageDownloader sharedDownloader];
|
||||
[downloader downloadImageWithURL:imageURL
|
||||
options:0
|
||||
progress:^(NSInteger receivedSize, NSInteger expectedSize) {
|
||||
// progression tracking code
|
||||
}
|
||||
completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished) {
|
||||
if (image && finished) {
|
||||
// do something with image
|
||||
}
|
||||
}];
|
||||
```
|
||||
|
||||
### Using Asynchronous Image Caching Independently
|
||||
|
|
Loading…
Reference in New Issue