Skip to content

Commit 49f6e53

Browse files
committed
Merge pull request SDWebImage#1257 from Coeur/spelling
spelling
2 parents 5f6287e + c011d1a commit 49f6e53

9 files changed

+30
-30
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It provides:
2626
- Arm64 support
2727

2828
NOTE: The version 3.0 of SDWebImage isn't fully backward compatible with 2.0 and requires iOS 5.1.1
29-
minimum deployement version. If you need iOS < 5.0 support, please use the last [2.0 version](https://github.com/rs/SDWebImage/tree/2.0-compat).
29+
minimum deployment version. If you need iOS < 5.0 support, please use the last [2.0 version](https://github.com/rs/SDWebImage/tree/2.0-compat).
3030

3131
[How is SDWebImage better than X?](https://github.com/rs/SDWebImage/wiki/How-is-SDWebImage-better-than-X%3F)
3232

@@ -74,7 +74,7 @@ handled for you, from async downloads to caching management.
7474

7575
### Using blocks
7676

77-
With blocks, you can be notified about the image download progress and whenever the image retrival
77+
With blocks, you can be notified about the image download progress and whenever the image retrieval
7878
has completed with success or not:
7979

8080
```objective-c

SDWebImage/MKAnnotationView+WebCache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* @param completedBlock A block called when operation has been completed. This block has no return value
6464
* and takes the requested UIImage as first parameter. In case of error the image parameter
6565
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
66-
* indicating if the image was retrived from the local cache or from the network.
66+
* indicating if the image was retrieved from the local cache or from the network.
6767
* The fourth parameter is the original image url.
6868
*/
6969
- (void)sd_setImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock;
@@ -78,7 +78,7 @@
7878
* @param completedBlock A block called when operation has been completed. This block has no return value
7979
* and takes the requested UIImage as first parameter. In case of error the image parameter
8080
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
81-
* indicating if the image was retrived from the local cache or from the network.
81+
* indicating if the image was retrieved from the local cache or from the network.
8282
* The fourth parameter is the original image url.
8383
*/
8484
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;
@@ -94,7 +94,7 @@
9494
* @param completedBlock A block called when operation has been completed. This block has no return value
9595
* and takes the requested UIImage as first parameter. In case of error the image parameter
9696
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
97-
* indicating if the image was retrived from the local cache or from the network.
97+
* indicating if the image was retrieved from the local cache or from the network.
9898
* The fourth parameter is the original image url.
9999
*/
100100
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;

SDWebImage/SDImageCache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot
3737
@interface SDImageCache : NSObject
3838

3939
/**
40-
* Decompressing images that are downloaded and cached can improve peformance but can consume lot of memory.
40+
* Decompressing images that are downloaded and cached can improve performance but can consume lot of memory.
4141
* Defaults to YES. Set this to NO if you are experiencing a crash due to excessive memory consumption.
4242
*/
4343
@property (assign, nonatomic) BOOL shouldDecompressImages;
@@ -254,7 +254,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot
254254
* Get the cache path for a certain key (needs the cache path root folder)
255255
*
256256
* @param key the key (can be obtained from url using cacheKeyForURL)
257-
* @param path the cach path root folder
257+
* @param path the cache path root folder
258258
*
259259
* @return the cache path
260260
*/

SDWebImage/SDWebImageCompat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#endif
1515

1616
#if __IPHONE_OS_VERSION_MIN_REQUIRED != 20000 && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_5_0
17-
#error SDWebImage doesn't support Deployement Target version < 5.0
17+
#error SDWebImage doesn't support Deployment Target version < 5.0
1818
#endif
1919

2020
#if !TARGET_OS_IPHONE

SDWebImage/SDWebImageDownloader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageDownloaderOptions) {
4040
SDWebImageDownloaderHandleCookies = 1 << 5,
4141

4242
/**
43-
* Enable to allow untrusted SSL ceriticates.
43+
* Enable to allow untrusted SSL certificates.
4444
* Useful for testing purposes. Use with caution in production.
4545
*/
4646
SDWebImageDownloaderAllowInvalidSSLCertificates = 1 << 6,
@@ -78,7 +78,7 @@ typedef NSDictionary *(^SDWebImageDownloaderHeadersFilterBlock)(NSURL *url, NSDi
7878
@interface SDWebImageDownloader : NSObject
7979

8080
/**
81-
* Decompressing images that are downloaded and cached can improve peformance but can consume lot of memory.
81+
* Decompressing images that are downloaded and cached can improve performance but can consume lot of memory.
8282
* Defaults to YES. Set this to NO if you are experiencing a crash due to excessive memory consumption.
8383
*/
8484
@property (assign, nonatomic) BOOL shouldDecompressImages;

SDWebImage/SDWebImageManager.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageOptions) {
4141
* This option helps deal with images changing behind the same request URL, e.g. Facebook graph api profile pics.
4242
* If a cached image is refreshed, the completion block is called once with the cached image and again with the final image.
4343
*
44-
* Use this flag only if you can't make your URLs static with embeded cache busting parameter.
44+
* Use this flag only if you can't make your URLs static with embedded cache busting parameter.
4545
*/
4646
SDWebImageRefreshCached = 1 << 4,
4747

@@ -58,7 +58,7 @@ typedef NS_OPTIONS(NSUInteger, SDWebImageOptions) {
5858
SDWebImageHandleCookies = 1 << 6,
5959

6060
/**
61-
* Enable to allow untrusted SSL ceriticates.
61+
* Enable to allow untrusted SSL certificates.
6262
* Useful for testing purposes. Use with caution in production.
6363
*/
6464
SDWebImageAllowInvalidSSLCertificates = 1 << 7,
@@ -195,11 +195,11 @@ SDWebImageManager *manager = [SDWebImageManager sharedManager];
195195
* This block has no return value and takes the requested UIImage as first parameter.
196196
* In case of error the image parameter is nil and the second parameter may contain an NSError.
197197
*
198-
* The third parameter is an `SDImageCacheType` enum indicating if the image was retrived from the local cache
198+
* The third parameter is an `SDImageCacheType` enum indicating if the image was retrieved from the local cache
199199
* or from the memory cache or from the network.
200200
*
201201
* The last parameter is set to NO when the SDWebImageProgressiveDownload option is used and the image is
202-
* downloading. This block is thus called repetidly with a partial image. When image is fully downloaded, the
202+
* downloading. This block is thus called repeatedly with a partial image. When image is fully downloaded, the
203203
* block is called a last time with the full image and the last parameter set to YES.
204204
*
205205
* @return Returns an NSObject conforming to SDWebImageOperation. Should be an instance of SDWebImageDownloaderOperation
@@ -220,7 +220,7 @@ SDWebImageManager *manager = [SDWebImageManager sharedManager];
220220
- (void)saveImageToCache:(UIImage *)image forURL:(NSURL *)url;
221221

222222
/**
223-
* Cancel all current opreations
223+
* Cancel all current operations
224224
*/
225225
- (void)cancelAll;
226226

SDWebImage/UIButton+WebCache.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* @param completedBlock A block called when operation has been completed. This block has no return value
7171
* and takes the requested UIImage as first parameter. In case of error the image parameter
7272
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
73-
* indicating if the image was retrived from the local cache or from the network.
73+
* indicating if the image was retrieved from the local cache or from the network.
7474
* The fourth parameter is the original image url.
7575
*/
7676
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock;
@@ -86,7 +86,7 @@
8686
* @param completedBlock A block called when operation has been completed. This block has no return value
8787
* and takes the requested UIImage as first parameter. In case of error the image parameter
8888
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
89-
* indicating if the image was retrived from the local cache or from the network.
89+
* indicating if the image was retrieved from the local cache or from the network.
9090
* The fourth parameter is the original image url.
9191
*/
9292
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;
@@ -103,7 +103,7 @@
103103
* @param completedBlock A block called when operation has been completed. This block has no return value
104104
* and takes the requested UIImage as first parameter. In case of error the image parameter
105105
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
106-
* indicating if the image was retrived from the local cache or from the network.
106+
* indicating if the image was retrieved from the local cache or from the network.
107107
* The fourth parameter is the original image url.
108108
*/
109109
- (void)sd_setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;
@@ -152,7 +152,7 @@
152152
* @param completedBlock A block called when operation has been completed. This block has no return value
153153
* and takes the requested UIImage as first parameter. In case of error the image parameter
154154
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
155-
* indicating if the image was retrived from the local cache or from the network.
155+
* indicating if the image was retrieved from the local cache or from the network.
156156
* The fourth parameter is the original image url.
157157
*/
158158
- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletionBlock)completedBlock;
@@ -168,7 +168,7 @@
168168
* @param completedBlock A block called when operation has been completed. This block has no return value
169169
* and takes the requested UIImage as first parameter. In case of error the image parameter
170170
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
171-
* indicating if the image was retrived from the local cache or from the network.
171+
* indicating if the image was retrieved from the local cache or from the network.
172172
* The fourth parameter is the original image url.
173173
*/
174174
- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;
@@ -184,7 +184,7 @@
184184
* @param completedBlock A block called when operation has been completed. This block has no return value
185185
* and takes the requested UIImage as first parameter. In case of error the image parameter
186186
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
187-
* indicating if the image was retrived from the local cache or from the network.
187+
* indicating if the image was retrieved from the local cache or from the network.
188188
* The fourth parameter is the original image url.
189189
*/
190190
- (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;

SDWebImage/UIImageView+HighlightedWebCache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* @param completedBlock A block called when operation has been completed. This block has no return value
4444
* and takes the requested UIImage as first parameter. In case of error the image parameter
4545
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
46-
* indicating if the image was retrived from the local cache or from the network.
46+
* indicating if the image was retrieved from the local cache or from the network.
4747
* The fourth parameter is the original image url.
4848
*/
4949
- (void)sd_setHighlightedImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock;
@@ -58,7 +58,7 @@
5858
* @param completedBlock A block called when operation has been completed. This block has no return value
5959
* and takes the requested UIImage as first parameter. In case of error the image parameter
6060
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
61-
* indicating if the image was retrived from the local cache or from the network.
61+
* indicating if the image was retrieved from the local cache or from the network.
6262
* The fourth parameter is the original image url.
6363
*/
6464
- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;
@@ -74,7 +74,7 @@
7474
* @param completedBlock A block called when operation has been completed. This block has no return value
7575
* and takes the requested UIImage as first parameter. In case of error the image parameter
7676
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
77-
* indicating if the image was retrived from the local cache or from the network.
77+
* indicating if the image was retrieved from the local cache or from the network.
7878
* The fourth parameter is the original image url.
7979
*/
8080
- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock;

SDWebImage/UIImageView+WebCache.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
* @param completedBlock A block called when operation has been completed. This block has no return value
9393
* and takes the requested UIImage as first parameter. In case of error the image parameter
9494
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
95-
* indicating if the image was retrived from the local cache or from the network.
95+
* indicating if the image was retrieved from the local cache or from the network.
9696
* The fourth parameter is the original image url.
9797
*/
9898
- (void)sd_setImageWithURL:(NSURL *)url completed:(SDWebImageCompletionBlock)completedBlock;
@@ -107,7 +107,7 @@
107107
* @param completedBlock A block called when operation has been completed. This block has no return value
108108
* and takes the requested UIImage as first parameter. In case of error the image parameter
109109
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
110-
* indicating if the image was retrived from the local cache or from the network.
110+
* indicating if the image was retrieved from the local cache or from the network.
111111
* The fourth parameter is the original image url.
112112
*/
113113
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletionBlock)completedBlock;
@@ -123,7 +123,7 @@
123123
* @param completedBlock A block called when operation has been completed. This block has no return value
124124
* and takes the requested UIImage as first parameter. In case of error the image parameter
125125
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
126-
* indicating if the image was retrived from the local cache or from the network.
126+
* indicating if the image was retrieved from the local cache or from the network.
127127
* The fourth parameter is the original image url.
128128
*/
129129
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock;
@@ -140,13 +140,13 @@
140140
* @param completedBlock A block called when operation has been completed. This block has no return value
141141
* and takes the requested UIImage as first parameter. In case of error the image parameter
142142
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
143-
* indicating if the image was retrived from the local cache or from the network.
143+
* indicating if the image was retrieved from the local cache or from the network.
144144
* The fourth parameter is the original image url.
145145
*/
146146
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock;
147147

148148
/**
149-
* Set the imageView `image` with an `url` and a optionaly placeholder image.
149+
* Set the imageView `image` with an `url` and optionally a placeholder image.
150150
*
151151
* The download is asynchronous and cached.
152152
*
@@ -157,7 +157,7 @@
157157
* @param completedBlock A block called when operation has been completed. This block has no return value
158158
* and takes the requested UIImage as first parameter. In case of error the image parameter
159159
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
160-
* indicating if the image was retrived from the local cache or from the network.
160+
* indicating if the image was retrieved from the local cache or from the network.
161161
* The fourth parameter is the original image url.
162162
*/
163163
- (void)sd_setImageWithPreviousCachedImageWithURL:(NSURL *)url andPlaceholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock;

0 commit comments

Comments
 (0)