I'm a little but confused as to how I could make an image taken by an iPhone camera to fit into a UIImageView of any given size. Obviously the scale would be different for each imageview so the image wouldn't "fit" perfectly. But let's say I have a UIImageView of size 200pt x 400 pt. What would be the best way to fit a UIImage
to this UIImageView
?
I think I want to do something like the following:
[imageView setContentMode:UIViewContentModeScaleAspectFill];
This sort of works, but it seems to increase the size of my UIImageView but I don't want this...
clipToBounds
(orClip Subviews
from storyboard) to YES for your UIImageView. – Elephus