-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
private func image(url: URL, cache: Bool, completion:@escaping (UIImage?)->()) {
guard let imageData = try? Data(contentsOf: url) else {
return
}
if cache {
saveImage(imageData, url: url, completion: nil)/// 存储
}
let image = self.image(data: imageData)
completion(image)
}
在网络不好的情况下,下载缓慢,会卡在这里,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels