UIImage resize and crop to fit

Posted by Amit Hagin on Stack Overflow See other posts from Stack Overflow or by Amit Hagin
Published on 2012-03-19T16:43:13Z Indexed on 2012/03/22 11:29 UTC
Read the original article Hit count: 289

I read a lot, also here, but couldn't find a simple way to do it: In objective c - I have a big UIImage and a small UIImageView. I want to programmatically shrink the content of a UIImage just enough to fit the smaller dimension within the UIImageView. The larger dimension will be cropped, and the result will be the maximum I can get from an image without changing the proportion.

can you please help me?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about uiimageview