absoluteString for iOS 3

This commit is contained in:
Sebastian Vieira 2012-01-23 17:07:22 +01:00 committed by Olivier Poitrey
parent 3ef0f609fd
commit c972489931
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot
if ([delegate respondsToSelector:@selector(imageDownloader:didFinishWithImage:)]) if ([delegate respondsToSelector:@selector(imageDownloader:didFinishWithImage:)])
{ {
CGFloat scale = 1.0; CGFloat scale = 1.0;
NSString *lastPathComponent = url.lastPathComponent; NSString *lastPathComponent = url.absoluteString;
if ([lastPathComponent hasSuffix:@"@2x.png"] || [lastPathComponent hasSuffix:@"@2x.jpg"]) { if ([lastPathComponent hasSuffix:@"@2x.png"] || [lastPathComponent hasSuffix:@"@2x.jpg"]) {
scale = 2.0; scale = 2.0;
} }