title: ios uitableview - while scrolling, cells display wrong data before updating with correct data
body: <p>I have a small problem with displaying data from server in UITableView cells.
  I have an add that displays a "feed" screen, similar to the main screen on Instagram.
  Each cell in the feed's UITableView loads and image and some text from the server (from parse.com)</p>
  
  <p>This is my cellForRowAtIndexPath implementation:</p>
  
  <pre><code>override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier(HomeCell.reuseIdentifier(), forIndexPath: indexPath) as HomeCell
  
      // Configure the cell...
      let obj = tableArray[indexPath.section]
      cell.configureWithObject(obj)
  
      return cell
  }
  </code></pre>
  
  <p>tableArray is an array of PFObjects</p>
  
  <p>over at the HomeCell class, the configureWithObject methods loads the remote image for this cell using SDWebImage and sets the needed text labels</p>
  
  <pre><code>func configureWithObject(object : PFObject) {
  
      AppManager.sharedInstance().getTrackDetailsFromPost(object, block: { (error, obj) -&gt; Void in
          if error != nil
          {
              return
          }
  
          var artworkURL = ""
          if let artworkString = obj?[Column.TracksArtwork.rawValue] as? String {
              artworkURL = artworkString
          }
  
  
          self.albumArtwork.sd_setImageWithPreviousCachedImageWithURL(NSURL(string: artworkURL))
  
          var trackTitle = ""
  
          if let title = obj?[Column.TracksTitle.rawValue] as? String {
              trackTitle = title
          }
  
          var trackArtist = ""
          if let artist = obj?[Column.TracksArtist.rawValue] as? String {
              trackArtist = artist
          }
  
          var trackAlbum = ""
          if let album = obj?[Column.TracksAlbum.rawValue] as? String {
              trackAlbum = album
          }
  
          self.songNameLabel.text = trackTitle
          self.songDetailsLabel.text = "\(trackArtist) - \(trackAlbum)"
  
      })
  }
  </code></pre>
  
  <p>The problem:
  When i scroll through the tableview, i see the wrong image and data on some cells for a split second, then the cell refreshes and displays the correct image and data.</p>
  
  <p>How can i make the scrolling experience smooth and not have the cells keep reloading and refreshing data?</p>
  
  <p>Thanks, Gil. </p>