4
我得到Alamofire.downloand如下錯誤:Alamofire - Alamofire.AFError.responseSerializationFailed - Xcode的8
Alamofire.download(URLString).responseData { response in
if let data = response.result.value {
let image = UIImage(data: data)
}else{
print(response.result.error)
}
}
Alamofire.AFError.responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.inputFileReadFailed(文件:/ //private/var/mobile/Containers/Data/Application/40167F58-FF4A-4D19-B01A-F8ED90F794DD/tmp/CFNetworkDownload_1dnNQR.tmp)))
誰能幫助解決其面臨的還是同樣的問題?
感謝
'URLString'的價值是什麼,所以我們可以測試該圖片? – ozgur
測試網址:qqxxzx.com/images/cute-wallpaper/cute-wallpaper-10.jpg – user831098
可能重複[Alamofire下載問題](http://stackoverflow.com/questions/39490390/alamofire-download-issue) – Moritz