I have an UIImageView created using Storyboard inside UIViewController.
UIImageView
UIViewController
I\'m trying to rescale the width of the image to fit the screen width
Try using this code:
float imgFactor = frame.size.height / frame.size.width; frame.size.width = [[UIScreen mainScreen] bounds].size.width; frame.size.height = frame.size.width * imgFactor;