I have a UITableViewCell
containing only a UIImageView
that is constrained to the superview on all four sides so that the cell scales to fit the full image.
The UIImageView
is set to Scale Aspect Fit so that the large images resize to fit within the width of the cell. However, after the aspect fit takes place, the UIImageView
remains the same size as before the scaling, and the cell in turn retains the size of the larger, unscaled image.
Is there any way in Interface Builder to force the height of the UIImageView
to scale down when the image is scaled down by the Fit property? Or, equally, is there any way to programmatically tell the UIImageView
to resize its height to match the newly scaled UIImage
height?