Im trying to fit an image into uiimageview, the images are downloaded and loaded dinamically, and theres only one resolution available for ios and android apps.
So, i need images to keep aspect ratio and scale to width, i set UIImageView content mode to
UIViewContentModeScaleAspectFill, but it centers image, so it goes out of screen for both top and bottom, images will be designed so that the bottom is unnecessary.
How can i align the image to the top-left corner?
And can UIImageView scale to width for me too? or how can i do it?
Thanks in advance.
EDIT:
I tried setcliptobounds and that cuts the image to imageview size, thats not my problem.
UIViewContentModeTopLeft is working well, but now i cant apply UIViewContentModeScaleAspectFill, or can i apply both?