loading ImageView with a jpeg image

When I load a jpeg image into an imageview is the default action to just rescale the width and height of the image to fill the UIImageView? If I want to maintain the aspect ratio of the original image file is using something like


imageview.contentmode = UIViewContentModeAspectFit the step to take?

Answered by imsmooth in 403671022

This worked.

Accepted Answer

This worked.

loading ImageView with a jpeg image
 
 
Q