我在我的应用程序中使用firebase 3.0,并且已成功将图像下载到特定文件路径,但
if let downloadedImage = UIImage(contentsOfFile: filePath){
self.profilePictureImageView.image = downloadedImage
print("displayed")
}
这个代码没有执行,因为它给出了nil,而我的filePath是
file:/Users/achintyagupta/Library/Developer/CoreSimulator/Devices/A9F47009-5CB5-4DCE-AB9D-7D8C68F0CAD9/data/Containers/Data/Application/90AA4BDB-0301-48FE-948C-56A33966424A/Documents/96MDsdewjLOW0KbC6Gd9Vi56yPm1.jpg
图像的实际filePath