Swift, custom UITableViewCell with UIImageView. Need to resize cell to image height
问题 I'am trying to make app, that will show images in table view. I have custom cell with image view. It only must download image data from url: @IBOutlet weak var tweetImage: UIImageView! var imageData : MediaItem? { didSet { updateUI() }} func updateUI(){ tweetImage.image = nil if let url = imageData?.url { if let data = NSData(contentsOfURL: url) { tweetImage.image = UIImage(data: data) } } } I need to get the cell height was changed after the download. It must be equal to the height of the