Updates progress callback to use NSInteger
Pull Request #606 resolves this issue in the code but not in the Documentation.
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -91,7 +91,7 @@ Here is a simple example of how to use SDWebImageManager: | @@ -91,7 +91,7 @@ Here is a simple example of how to use SDWebImageManager: | ||
91 | SDWebImageManager *manager = [SDWebImageManager sharedManager]; | 91 | SDWebImageManager *manager = [SDWebImageManager sharedManager]; |
92 | [manager downloadWithURL:imageURL | 92 | [manager downloadWithURL:imageURL |
93 | options:0 | 93 | options:0 |
94 | - progress:^(NSUInteger receivedSize, long long expectedSize) | 94 | + progress:^(NSInteger receivedSize, NSInteger expectedSize) |
95 | { | 95 | { |
96 | // progression tracking code | 96 | // progression tracking code |
97 | } | 97 | } |
@@ -111,7 +111,7 @@ It's also possible to use the async image downloader independently: | @@ -111,7 +111,7 @@ It's also possible to use the async image downloader independently: | ||
111 | ```objective-c | 111 | ```objective-c |
112 | [SDWebImageDownloader.sharedDownloader downloadImageWithURL:imageURL | 112 | [SDWebImageDownloader.sharedDownloader downloadImageWithURL:imageURL |
113 | options:0 | 113 | options:0 |
114 | - progress:^(NSUInteger receivedSize, long long expectedSize) | 114 | + progress:^(NSInteger receivedSize, NSInteger expectedSize) |
115 | { | 115 | { |
116 | // progression tracking code | 116 | // progression tracking code |
117 | } | 117 | } |
-
Please register or login to post a comment