I have a UIImageView where I have set the frame size to x = 0, y = 0, width = 404, height = 712. In my project, I need to change the image in
UIImageView
x = 0, y = 0, width = 404, height = 712
Setting clipsToBounds in combination with UIViewContentModeScaleAspectFit contentMode was what did the trick for me. Hope that helps someone!
imageView.clipsToBounds = YES; imageView.contentMode = UIViewContentModeScaleAspectFit;