My app is crashing when it gets to this block.
let uploadFile:PFFile = tweet["uploadedPic"] as PFFile
uploadFile.getDataInBackgroundWithBlock {
(uploadData:NSData!, error:NSError!)-> Void in
let uploadImage:UIImage = UIImage(data: uploadData)!
cell.attachedImage.image = uploadImage
}
Why would I be receiving this error?
fatal error: unexpectedly found nil while unwrapping an Optional value
Any ideas?
Thanks!