I'm having problems displaying the image that I take from Parse in my iOS app. I decided to use PFImageView. This is what I have so far:
I declared PFImageView pic:
@IBOutlet var pic: PFImageView!
inside the request:
self.name.text = object["Name"] as String
var imagefile = object["image"] as PFFile
self.pic.file = imagefile
self.pic.loadInBackground()
self.desc.text = object["Description"] as String
This is really strange, because others work (name and description), and I'm sure that I have a field called "image" in my database (yes small i). I always get this error: fatal error: unexpectedly found nil while deploying an optional value.
Any info on this?
source
share