Updates progress callback to use NSInteger
Pull Request #606 resolves this issue in the code but not in the Documentation.
This commit is contained in:
parent
b49243d147
commit
065db6db0c
|
@ -91,7 +91,7 @@ Here is a simple example of how to use SDWebImageManager:
|
|||
SDWebImageManager *manager = [SDWebImageManager sharedManager];
|
||||
[manager downloadWithURL:imageURL
|
||||
options:0
|
||||
progress:^(NSUInteger receivedSize, long long expectedSize)
|
||||
progress:^(NSInteger receivedSize, NSInteger expectedSize)
|
||||
{
|
||||
// progression tracking code
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ It's also possible to use the async image downloader independently:
|
|||
```objective-c
|
||||
[SDWebImageDownloader.sharedDownloader downloadImageWithURL:imageURL
|
||||
options:0
|
||||
progress:^(NSUInteger receivedSize, long long expectedSize)
|
||||
progress:^(NSInteger receivedSize, NSInteger expectedSize)
|
||||
{
|
||||
// progression tracking code
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue