In short, you cannot do this with a UIImageView
.
One solution is to subclass a UIView
containing an UIImageView
and change its frame according to image size. For example, you can find one version here.
In short, you cannot do this with a UIImageView
.
One solution is to subclass a UIView
containing an UIImageView
and change its frame according to image size. For example, you can find one version here.