I am using parse.com to produce a simple app which retrieves data online and fills my table. I have been successful in populating my table cell textlabels but when I try retrieving images I get shown nothing in my PFTableViewCells.
My code looks as follows:
override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!, object: PFObject!) -> PFTableViewCell! {
let cell = tableView.dequeueReusableCellWithIdentifier("reuse", forIndexPath: indexPath) as PFTableViewCell
var image : UIImage = UIImage(named: "first")!
cell.textLabel?.text = object.objectForKey("Name") as? String
var thumbnail:PFFile = object.objectForKey("Image") as PFFile
cell.imageView?.image = UIImage(named: "first")
cell.imageView?.file = thumbnail
cell.imageView?.loadInBackground()
return cell
}
Is there anything wrong with how I set this up?