I have an ImageView. This is the code I use to add an image to ImageView
var imgstr = pf["ImageFileName"] as String
image = UIImage(named: imgstr)!
println(imgstr)
self.Imageview.image = image
Now I have an image in the Project folder, as you can see in the screenshot 
However, I get this error at runtime
fatal error: unexpectedly found nil while unwrapping an Optional value
source
share