【发布时间】:2014-09-20 11:44:50
【问题描述】:
当我检索存储在 Parse.com 中的 PFFile 时遇到问题
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
}
}
}
错误从第二行开始。 “profileImage”列存在,但可以为空。
有人可以帮助我吗? 谢谢。
【问题讨论】:
标签: swift parse-platform ios8 xcode6