How can I adjust a UITableViewCell's
height dynamically based on the height of an image downloaded from an API?
I tried to use tableView:cellForRowAtIndexPath:indexPath
but failed.
FYI, I am using AFNetworking to get the images' url from api and I use SDWebImage to get the image data.