Given that I have a UIImage that has a large frame.
I put this UIImage in a UIImageView *myImageView;
I set the content mode of myImageView to UIViewContentModeScaleAspectFill .
I also set the myImageView frame to (50.50).
However, my UIImage significantly larger than this smaller frame, and for some reason, the image always extends the frame size of myImageView.
How to ensure that the myImageView frame remains constant and does not change from image to image?
Thanks!
source share