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?

Accepted Reply

This worked.

Replies

This worked.