Avoid stretching of UIImage inside my UIImageView
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.
Set your imageview's contentMode
property to UIViewContentModeScaleAspectFit
精彩评论