From c972489931bf86a17e5d282ae17e0896fbd5ea80 Mon Sep 17 00:00:00 2001 From: Sebastian Vieira Date: Mon, 23 Jan 2012 17:07:22 +0100 Subject: [PATCH] absoluteString for iOS 3 --- SDWebImageDownloader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageDownloader.m b/SDWebImageDownloader.m index bded6aec..bd1778a2 100644 --- a/SDWebImageDownloader.m +++ b/SDWebImageDownloader.m @@ -126,7 +126,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot if ([delegate respondsToSelector:@selector(imageDownloader:didFinishWithImage:)]) { CGFloat scale = 1.0; - NSString *lastPathComponent = url.lastPathComponent; + NSString *lastPathComponent = url.absoluteString; if ([lastPathComponent hasSuffix:@"@2x.png"] || [lastPathComponent hasSuffix:@"@2x.jpg"]) { scale = 2.0; }