3
votes

I'm loading an UIImage UIImageView. The UIImageView has identical width and length, and when I load an UIImage it gets stretched.

Is there any way to load my UIImage inside my UIImageView without change in its proportions ?, I want the image to fit inside my UIImageView without deformation.

1

1 Answers

9
votes

Set your imageview's contentMode property to UIViewContentModeScaleAspectFit