From b6e0630b1708ad0ac6ab087a00518798874d4412 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Mon, 14 May 2012 08:45:09 +0200 Subject: [PATCH] Fix some typos/misses (fix #119) --- SDWebImage/SDWebImageCompat.h | 2 +- SDWebImage/SDWebImagePrefetcher.h | 1 + SDWebImage/SDWebImagePrefetcher.m | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageCompat.h b/SDWebImage/SDWebImageCompat.h index 47d86c20..82d4c0ad 100644 --- a/SDWebImage/SDWebImageCompat.h +++ b/SDWebImage/SDWebImageCompat.h @@ -61,7 +61,7 @@ NS_INLINE UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData) { image = [[UIImage alloc] initWithData:(NSData *)imageOrData]; } - else if ([imageOrData isKindOfClass:[NSData class]]) + else if ([imageOrData isKindOfClass:[UIImage class]]) { image = SDWIReturnRetained((UIImage *)imageOrData); } diff --git a/SDWebImage/SDWebImagePrefetcher.h b/SDWebImage/SDWebImagePrefetcher.h index 87c5316c..98dac0c5 100644 --- a/SDWebImage/SDWebImagePrefetcher.h +++ b/SDWebImage/SDWebImagePrefetcher.h @@ -8,6 +8,7 @@ #import #import "SDWebImageManagerDelegate.h" +#import "SDWebImageManager.h" /** * Prefetch some URLs in the cache for future use. Images are downloaded in low priority. diff --git a/SDWebImage/SDWebImagePrefetcher.m b/SDWebImage/SDWebImagePrefetcher.m index ad40322f..08096cd1 100644 --- a/SDWebImage/SDWebImagePrefetcher.m +++ b/SDWebImage/SDWebImagePrefetcher.m @@ -19,6 +19,7 @@ static SDWebImagePrefetcher *instance; @synthesize prefetchURLs; @synthesize maxConcurrentDownloads; +@synthesize options; + (SDWebImagePrefetcher *)sharedImagePrefetcher {