I have a UIScrollView with a UIImageView as a subview. I have defined this ImageView as the View for zooming. The ImageView's frame size is the same as the frame of the ScrollView.
When I first load the View Controller, I choose an image from the Asset library and load it into the ImageView. I then adjust this image by zooming and panning in the scroll view. I save the ZoomScale and ContentOffset data.
When I try to access the View Controller again, I set the ZoomScale and ContentOffset values to those that I saved when adjusting the image. But the image does not appear the same as when I first adjusted it. On subsequent loads, the frame of the ImageView becomea much larger than the frame of the scrollView. This does not happen on simulator but does happen on device.
Any help would be appreciated!