How to resize UIImage programmatically to be like setting scaleAspectFill content mode?
I've found several examples to resize an image keeping its aspect ratio given a certain
CGRect, or for example only the width like in this post. But those examples always create a new image that looks like in
scaleAspectFit content mode. I would like to get one like in
scaleAspectFill content mode but I don't find any example.
ios uiimageview uiimage resize scale