DowloadImageWithURL与SDWebImage

时间:2016-05-03 08:54:05

标签: ios swift sdwebimage

我在SDWebImage的完成块上遇到这种错误。我的目标是下载图像。这是我的代码:

let manager: SDWebImageManager = SDWebImageManager.sharedManager()
manager.downloadImageWithURL(NSURL(string: feedDetails.thumbnail), options: [],
    progress: {(receivedSize: Int, expectedSize: Int) -> Void in
    },
    completed: {(image: UIImage, data: NSData, error: NSError, finished: Bool) -> Void in
    }
)

这是我遇到的错误:

  

无法转换类型'(UIImage,NSData,NSError,Bool)的值 - >虚空'   预期参数类型' SDWebImageCompletionWithFinishedBlock!'

0 个答案:

没有答案