As I try to put UIImage into a UIImageView, UIImageView auto-expended to display real image size. Is there a solution to have image auto-scale according to UIImageView’s size.
As I try to put UIImage into a UIImageView, UIImageView auto-expended to display real
Share
You can do that either in IB or in your code directly be setting UIImageView’s
contentModeproperty toUIViewContentModeScaleAspectFit(see UIView class documentation for other possible values ofUIViewContentModeenumeration).