Merge branch 'rebasedMaster' of https://github.com/cbowns/SDWebImage into cbowns-rebasedMaster
Showing
4 changed files
with
5 additions
and
5 deletions
@@ -220,7 +220,7 @@ time and do the right thing. | @@ -220,7 +220,7 @@ time and do the right thing. | ||
220 | Installation | 220 | Installation |
221 | ------------ | 221 | ------------ |
222 | 222 | ||
223 | -You can chose to copy all the files in your project or to import the it as a static library. | 223 | +There are two ways to use this in your project: copy all the files into your project, or import the project as a static library. |
224 | 224 | ||
225 | ### Add the SDWebImage project to your project | 225 | ### Add the SDWebImage project to your project |
226 | 226 |
@@ -111,7 +111,7 @@ static SDWebImageDecoder *sharedInstance; | @@ -111,7 +111,7 @@ static SDWebImageDecoder *sharedInstance; | ||
111 | CGColorSpaceRelease(colorSpace); | 111 | CGColorSpaceRelease(colorSpace); |
112 | if (!context) return nil; | 112 | if (!context) return nil; |
113 | 113 | ||
114 | - CGRect rect = (CGRect){CGPointZero, CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)}; | 114 | + CGRect rect = (CGRect){CGPointZero,{CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)}}; |
115 | CGContextDrawImage(context, rect, imageRef); | 115 | CGContextDrawImage(context, rect, imageRef); |
116 | CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); | 116 | CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); |
117 | CGContextRelease(context); | 117 | CGContextRelease(context); |
@@ -51,9 +51,9 @@ static SDWebImagePrefetcher *instance; | @@ -51,9 +51,9 @@ static SDWebImagePrefetcher *instance; | ||
51 | self.prefetchURLs = urls; | 51 | self.prefetchURLs = urls; |
52 | 52 | ||
53 | // Starts prefetching from the very first image on the list with the max allowed concurrency | 53 | // Starts prefetching from the very first image on the list with the max allowed concurrency |
54 | - int listCount = [self.prefetchURLs count]; | 54 | + NSUInteger listCount = [self.prefetchURLs count]; |
55 | SDWebImageManager *manager = [SDWebImageManager sharedManager]; | 55 | SDWebImageManager *manager = [SDWebImageManager sharedManager]; |
56 | - for (int i = 0; i < self.maxConcurrentDownloads && _requestedCount < listCount; i++) | 56 | + for (NSUInteger i = 0; i < self.maxConcurrentDownloads && _requestedCount < listCount; i++) |
57 | { | 57 | { |
58 | [self startPrefetchingAtIndex:i withManager:manager]; | 58 | [self startPrefetchingAtIndex:i withManager:manager]; |
59 | } | 59 | } |
-
Please register or login to post a comment