If I do self.imageOfCatalog.Image.contentMode = UIViewContentModeScaleAspectFill;// | UIViewContentModeTop; self.imageOfCatalog.Image.contentMode = UIViewContentModeScaleAspectFill;// | UIViewContentModeTop;
I get what I want with a little cache. It seems like iOS is putting the center of the image.
I want UIImageView to display the top of the image and crop the rest.
How can I do it?
This is a screenshot:

The image is good enough. However, I want the part to appear as the top, not the central part.
source share