I have UITableViewCell, containing only UIImageView, which is tied to the supervisor on all four sides, so the cell is scaled to fit the full image.
This setting is UIImageViewset to Scale Aspect Fit so that the size of large images changes according to the width of the cell. However, after compliance with the aspect, the size UIImageViewremains the same size as before scaling, and the cell, in turn, saves the size of a larger, unscaled image.
Is there a way in Interface Builder to make the height UIImageViewdecrease when the image is reduced using the Fit property? Or, equally, is there a way to programmatically say UIImageViewto resize its height to fit the new scaled height UIImage?
source
share