Infinite Possibilities
Infinite Possibilities

Reputation: 7476

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?

Upvotes: 3

Views: 2429

Answers (1)

Jasarien
Jasarien

Reputation: 58478

Set the clipsToBounds property on the image view to YES.

Upvotes: 7

Related Questions