i've a problem when i retrieve a PFFile stored in Parse.com
let user = PFUser.currentUser()
let userImageFile = user["profileImage"] as PFFile
userImageFile.getDataInBackgroundWithBlock {
(imageData: NSData!, error: NSError!) -> Void in
if error == nil {
if imageData != nil{
let image = UIImage(data:imageData)
self.profileImage.image = image
}
}
}
The error start at line two. Column "profileImage" exists, but it can be empty.
Someone can help me? Thank you.