title: Loading image in Swift from Parse
body: <p>I'm successfully pulling in data from Parse into swift, but my images don't seem to be working the way I'm doing it.</p>
  
  <p>In my cellForRowAtIndexPath method, I do the following:</p>
  
  <pre><code>        var event: AnyObject? = eventContainerArray[indexPath.row]
  
          if let unwrappedEvent: AnyObject = event {
              let eventTitle = unwrappedEvent["title"] as? String
              let eventDate = unwrappedEvent["date"] as? String
              let eventDescription = unwrappedEvent["description"] as String
              let eventImage = unwrappedEvent["image"] as? UIImage
  
              println(eventImage)
  
              if (eventImage != nil){
  
  
                  cell.loadItem(date: eventDate!, title: eventTitle!, description: eventDescription, image: eventImage!)}
  
  
              else {
  
  
                  let testImage: UIImage = UIImage(named: "test-image.png")!
  
                  cell.loadItem(date: eventDate!, title: eventTitle!, description: eventDescription, image: testImage )
  
  
              }
  
          }
      }
  
      return cell
  }
  </code></pre>
  
  <p>I'm using println() with my PFQuery, and I am seeing this as part of the object that's loading in: <code>image = "&lt;PFFile: 0x7fee62420b00&gt;";</code></p>
  
  <p>So I'm getting title, date, description, etc. all loading fine as part of the above eventContainerArray, but when I look at eventImage, it's nil every time. In the code above, it always defaults to loading test-image.png, being that the image is coming up nil. Am I simply handling that PFFile the improper way? Not sure why it's not working.</p>
  
  <p>Thanks!</p>