I have an UIImageView with some fixed rect size. But my images are not fixed in size. I want to display images according to UIImageView\'s rect size. Whether image is big or
Hope this helpful for you
CGImageRef imageRef = CGImageCreateWithImageInRect([largeImage CGImage], cropRect); image = [UIImage imageWithCGImage:imageRef]]; CGImageRelease(imageRef);