Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIImageView in UIView and not to display image parts out of bounds

How can I solve the problem I mentioned in the title? So I have an UIImageView and in it there is an UIImage. My UIImageView is in a View. When I set the origin of the imageview to (-120, -30) then I don't want to see the start of my imageview. Is this possible? Can this be done? How?

like image 984
Infinite Possibilities Avatar asked Dec 11 '25 07:12

Infinite Possibilities


1 Answers

Set the clipsToBounds property on the image view to YES.

like image 174
Jasarien Avatar answered Dec 13 '25 02:12

Jasarien



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!