开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜