“unexpectedly found nil while unwrapping an Optional value” when retriveing PFFile from Parse.com

后端 未结 1 1334
灰色年华
灰色年华 2021-01-21 16:39

i\'ve a problem when i retrieve a PFFile stored in Parse.com

let user = PFUser.currentUser()
let userImageFile = user[\"profileImage\"] as PFFile
            use         


        
相关标签:
1条回答
  • 2021-01-21 17:24

    Try:

    if let userImageFile = user["profileImage"] as? PFFile {
    
    }
    
    0 讨论(0)
提交回复
热议问题