Formatting in the readme.md
Showing
1 changed file
with
9 additions
and
11 deletions
@@ -96,17 +96,15 @@ Here is a simple example of how to use SDWebImageManager: | @@ -96,17 +96,15 @@ Here is a simple example of how to use SDWebImageManager: | ||
96 | ```objective-c | 96 | ```objective-c |
97 | SDWebImageManager *manager = [SDWebImageManager sharedManager]; | 97 | SDWebImageManager *manager = [SDWebImageManager sharedManager]; |
98 | [manager downloadImageWithURL:imageURL | 98 | [manager downloadImageWithURL:imageURL |
99 | - options:0 | ||
100 | - progress:^(NSInteger receivedSize, NSInteger expectedSize) | ||
101 | - { | ||
102 | - // progression tracking code | ||
103 | - } | ||
104 | - completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) | ||
105 | - { | ||
106 | - if (image) { | ||
107 | - // do something with image | ||
108 | - } | ||
109 | - }]; | 99 | + options:0 |
100 | + progress:^(NSInteger receivedSize, NSInteger expectedSize) { | ||
101 | + // progression tracking code | ||
102 | + } | ||
103 | + completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) { | ||
104 | + if (image) { | ||
105 | + // do something with image | ||
106 | + } | ||
107 | + }]; | ||
110 | ``` | 108 | ``` |
111 | 109 | ||
112 | ### Using Asynchronous Image Downloader Independently | 110 | ### Using Asynchronous Image Downloader Independently |
-
Please register or login to post a comment