title: iOS can not get image from json to TableViewCell
body: <p>I want to get image url from json in internet link and show it on the TableViewCell, but only load successfully only text on 2 label. </p>
  
  <p>Here is my code:</p>
  
  <p><strong>MoviesCellController.swift:</strong></p>
  
  <pre><code>import UIKit
  
  class MoviesViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
  
      var movies: [NSDictionary]!
  
      @IBOutlet var tableView: UITableView!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          let url = NSURL(string: "https://coderschool-movies.herokuapp.com/movies?api_key=xja087zcvxljadsflh214")!
          let request = NSURLRequest(URL: url)
  
          NSURLConnection.sendAsynchronousRequest(request,
              queue: NSOperationQueue.mainQueue()) { (response, data, error) -&gt; Void in
  
                  let json = try? NSJSONSerialization.JSONObjectWithData(data!, options: .MutableContainers) as? NSDictionary
                  if let json = json {
                      self.movies = json!["movies"] as? [NSDictionary]
                      self.tableView.reloadData()
                  }
          }
          tableView.dataSource = self
          tableView.delegate = self
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          if let movies = movies {
              return movies.count
          } else {
              return 0
          }
      }
  
      func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
          let cell = tableView.dequeueReusableCellWithIdentifier("MovieCell", forIndexPath: indexPath) as! MovieCell
  
          let movie = movies![indexPath.row]
  
          cell.titleLabel.text = movie["title"] as? String
          cell.synopsisLabel.text = movie["synopsis"] as? String
  
          let url = NSURL(string: movie.valueForKeyPath("posters.thumbnail") as! String)!
          cell.posterView.setImageWithURL(url)
  
          return cell
      }
  
  }
  </code></pre>
  
  <p><strong>MovieCell.swift:</strong></p>
  
  <pre><code>import UIKit
  
  class MovieCell: UITableViewCell {
  
      @IBOutlet var titleLabel: UILabel!
      @IBOutlet var synopsisLabel: UILabel!    
      @IBOutlet var posterView: UIImageView!
  
      override func awakeFromNib() {
          super.awakeFromNib()
          // Initialization code
      }
  
      override func setSelected(selected: Bool, animated: Bool) {
          super.setSelected(selected, animated: animated)
  
          // Configure the view for the selected state
      }
  
  }
  </code></pre>
  
  <p>My MainStoryBoard</p>
  
  <p><a href="https://i.stack.imgur.com/RbvUe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RbvUe.png" alt="enter image description here"></a></p>
  
  <p>When I run the simulator it only show like this, doesn't show the image anywhere.</p>
  
  <p>my Info.plist file:</p>
  
  <p><a href="https://i.stack.imgur.com/7HO7W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7HO7W.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/q0Hl1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q0Hl1.png" alt="enter image description here"></a></p>