我用
SDWebImage来下载图片.如果成功下载图像,我想进一步操作.
@H_301_2@cell.appIcon.sd_setImage(with: url,placeholderImage: UIImage.init(named: "App-Default"),completed: {(image: UIImage!,error: NSError!,cacheType: SDImageCacheType,imageURL: URL!) -> Void in
// Perform operation.
})
但是我收到了错误:
Cannot convert value of type ‘(UIImage!,NSError!,SDImageCacheType,URL!) -> Void’ to expected argument type ‘SDExternalCompletionBlock?’