I have a UIImageView where I set the frame size x = 0, y = 0, width = 404, height = 712 . In my project, I need to change the image in UIImageView dynamically.
I use this code to change the image:
self.imageView.image = [UIImage imageNamed:@"setting-image.png"];
The problem is that the *.png size is smaller than the UIImageView frame UIImageView , the image is stretched. I do not want him to stretch. Is there any way to do this?
ios cocoa-touch uiimage uiimageview
R. Dewi Aug 12 '11 at 4:15 2011-08-12 04:15
source share