I have a scrollView with several subViews. The subViews are defined like this:
CGRect screenRect = [[UIScreen mainScreen] bounds];
CGRect rect = imageView.frame;
rect.size.height = screenRect.size.height;
rect.size.width = screenRect.size.width;
imageView.frame = screenRect;
[scrollView addSubview:imageView];
This works fine until I change the interface orientation to landscape. The imageView is still in portrait mode, cutting the image in half. What should I do to change the portrait height and width, to landscape height and width?
Add this line in your code and check:
Check this link too.