iOS UITableViewCell asynchronous image download and change UITableView height accordingly with the use of auto layout -


i'm writing application images downloaded asynchronously , when images loaded scaled want show same size within uitableviewcell.

since i'm using auto layout have tried change height constraint through ib have change height of cell , though of reloading each cell after downloading each image not sure if it's idea.

its facebook application images loaded , uitableviewcell dynamically changed.

have tried delegate method?:

override func tableview(tableview: uitableview, heightforrowatindexpath indexpath: nsindexpath) -> cgfloat {         // return downloadedimage.bounds.height etc.     } 

also not forget reload data in viewdidload method

tableview.reloaddata() 

Comments