Przeglądaj źródła

absoluteString for iOS 3

Sebastian Vieira 14 lat temu
rodzic
commit
c972489931
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      SDWebImageDownloader.m

+ 1 - 1
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;
         }