If I do self.imageOfCatalog.Image.contentMode = UIViewContentModeScaleAspectFill;// | UIViewContentModeTop;
I get what I want with a small cache. Looks like IOS then put the center of the image.
I want the UIImageView to show the top of the image and crop the rest.
How would I do so?
This is the screenshot:
Image is good enough. However, I want the part being shown to be the top part rather than the center part.
That's not possible with an UIImageView,
[self setClipsToBounds:YES];
An example could be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With