I'm programming in Swift and using Parse as my database. I'm trying to get an image from the database which is stored as a file. I downloaded it as a PFFile
in an array in my code and naturally the imageView is thus unable to run the file because it's not a UIImage
. I've seen people on stackoverflow asking but I don't really understand their explanation.
Array_
var photos:[PFFile] = []
PFObject_
let post = PFObject(className: "Items")
Retrieving_ where I don't know what to do
let imageFile:PFFile = (post as! PFObject) ["imageFile"] as! PFFile