ios - tableview cells bleeding though each other -


i have uitableview 1 reusable cell. reusable cell contains photo , label. right there 7 items in table view. upon loading, everthing fine. when scroll down, , scroll up, cells have bled 1 another.

here code under cellforrowatindexpath:

func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell {     let cell = tableview.dequeuereusablecellwithidentifier("postcell") as! posttablecellview      cell.imageview!.image = posts[indexpath.row].image.value       let post = posts[indexpath.row]     post.downloadimage()     post.fetchlikes()     cell.post = post      cell.clipstobounds = true     cell.viewforphoto.clipstobounds = true      return cell } 

any idea happening? have rebuilt storyboard , problem persists. have changed view mode of image view , table view cell aspect fit, aspect fill , scale fill. looking @ other similar questions led me see if setting clipstobounds = true help, didn't.

the problem downloading right in middle of cellforrowatindexpath:. there's no time that. user scrolling now. must return cell now. now! cannot fetching data remotely or performing other time-consuming task. must have every requested cell's data ready hand instantly.


Comments