Can someone answer this definitively? It seems that sometimes changing the frame of a UIImageView resizes its image and sometimes it doesn't.
I have loaded an image and created a UIImageView with it, sized about 100x100. Doing the following has absolutely no effect:
myImageView.contentMode = UIViewContentModeScaleAspectFit;
myImageView.frame = CGRectMake(0, 0, 30, 30);
Obviously I want to shrink the image down, but it just remains full size.
EDIT: If I do this:
myImageView.clipsToBounds = YES;
I get a clipped 30x30 portion of the image, but only the upper corner of it. How do I shrink the whole image down to 30x30?